Class ArduinoSignal

java.lang.Object
net.sourceforge.jarduino.message.ArduinoSignal
All Implemented Interfaces:
ArduinoAttribute.ArduinoAttrObject, ArduinoNamedObject

public final class ArduinoSignal
extends Object
implements ArduinoNamedObject, ArduinoAttribute.ArduinoAttrObject
Arduino Signal.
  • Field Details

    • MULTI_NONE

      public static final Long MULTI_NONE
      The null multiplexId.
  • Method Details

    • getOwner

      public ArduinoMessage getOwner()
      Obtain the owner.
      Returns:
      the owner
    • getName

      public String getName()
      Description copied from interface: ArduinoNamedObject
      Obtain the name.
      Specified by:
      getName in interface ArduinoNamedObject
      Returns:
      the name
    • getUnits

      public String getUnits()
      Obtain the units.
      Returns:
      the units
    • getDefinition

      public ArduinoSignalDefinition getDefinition()
      Obtain the definition.
      Returns:
      the definition
    • getFactor

      public ArduinoSignalFactor getFactor()
      Obtain the factor.
      Returns:
      the factor
    • getRange

      public ArduinoSignalRange getRange()
      Obtain the range.
      Returns:
      the range
    • isFloat

      public boolean isFloat()
      Does this signal use floats?
      Returns:
      true/false
    • isSigned

      public boolean isSigned()
      Does this signal use signed ints?
      Returns:
      true/false
    • getValues

      public ArduinoValues getValues()
      Obtain values.
      Returns:
      the values
    • isMultiplex

      public boolean isMultiplex()
      Is this the multiplex signal.
      Returns:
      true/false
    • getMultiplexId

      public Long getMultiplexId()
      Obtain the multiplexId.
      Returns:
      the Id
    • setMultiplexId

      public void setMultiplexId​(Long pId)
      Set the multiplexId.
      Parameters:
      pId - the multiplexId
    • getReceivers

      public List<ArduinoNode> getReceivers()
      Obtain the receivers.
      Returns:
      the receivers
    • getAttrValue

      public Object getAttrValue​(ArduinoAttribute pAttr)
      Description copied from interface: ArduinoAttribute.ArduinoAttrObject
      Obtain value for attribute.
      Specified by:
      getAttrValue in interface ArduinoAttribute.ArduinoAttrObject
      Parameters:
      pAttr - the attribute
      Returns:
      the value
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object