Package de.michaeldenk.yasdi4j
Class YasdiDevice
java.lang.Object
de.michaeldenk.yasdi4j.YasdiDevice
YasdiDevice represents a device with multiple channels. Each
device has a unique serial number and a unique name.- Author:
- Michael Denk <code@michaeldenk.de>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionbooleangetChannel(String name) Return the first channel that has the name name.getChannels(int channelMask, int channelIndex) Returns all channels matching channelMask and channelIndex.getName()Returns the device name.Returns all parameter channels of this device.longgetSN()Returns the serial number of this device.Returns all spot value channels of this device.getType()Returns the device type.inthashCode()toString()
-
Field Details
-
SPOT_VALUE_CHANNEL_MASK
public static final int SPOT_VALUE_CHANNEL_MASK- See Also:
-
PARAMETER_CHANNEL_MASK
public static final int PARAMETER_CHANNEL_MASK- See Also:
-
-
Method Details
-
getName
Returns the device name. The device name is a String of the form WR700-07 SN:9380933, i.e.getType() + " SN:" + getSN();
-
getSN
public long getSN()Returns the serial number of this device. -
getType
Returns the device type. The device type is a String of exactly 8 characters. -
getSpotValueChannels
Returns all spot value channels of this device. This is the same as callinggetChannels(SPOT_VALUE_CHANNEL_MASK, 0). -
getParameterChannels
Returns all parameter channels of this device. This is the same as callinggetChannels(PARAMETER_CHANNEL_MASK, 0). -
getChannels
Returns all channels matching channelMask and channelIndex. If channelIndex is 0, all channels matching channelMask are returned; otherwise only the one channel matching channelMask with the specified index is returned (see YASDI manual for details). -
getChannel
Return the first channel that has the name name. -
toString
-
equals
-
hashCode
public int hashCode()
-