Class YasdiDevice

java.lang.Object
de.michaeldenk.yasdi4j.YasdiDevice

public class YasdiDevice extends Object
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 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

      public String 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

      public String getType()
      Returns the device type. The device type is a String of exactly 8 characters.
    • getSpotValueChannels

      public YasdiChannel[] getSpotValueChannels()
      Returns all spot value channels of this device. This is the same as calling getChannels(SPOT_VALUE_CHANNEL_MASK, 0).
    • getParameterChannels

      public YasdiChannel[] getParameterChannels()
      Returns all parameter channels of this device. This is the same as calling getChannels(PARAMETER_CHANNEL_MASK, 0).
    • getChannels

      public YasdiChannel[] getChannels(int channelMask, int channelIndex)
      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

      public YasdiChannel getChannel(String name)
      Return the first channel that has the name name.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object