Class ArduinoMessage

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

public class ArduinoMessage
extends Object
implements ArduinoNamedObject, ArduinoAttribute.ArduinoAttrObject
Arduino Signal Message.
  • Method Details

    • addSignal

      public void addSignal​(ArduinoSignal pSignal)
      Add signal.
      Parameters:
      pSignal - the signal
    • getId

      public String getId()
      Obtain the id.
      Returns:
      the id
    • getName

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

      public int getLength()
      Obtain the length.
      Returns:
      the length
    • getSender

      public ArduinoNode getSender()
      Obtain the sender.
      Returns:
      the sender
    • getSystem

      public ArduinoSystem getSystem()
      Obtain the system.
      Returns:
      the system
    • getSignals

      public List<ArduinoSignal> getSignals()
      Obtain the non-multiplex signals.
      Returns:
      the signals
    • getAllSignals

      public List<ArduinoSignal> getAllSignals()
      Obtain a list of all the signals.
      Returns:
      the signals
    • hasFloat

      public boolean hasFloat()
      Does this message have float signals?
      Returns:
      true/false
    • hasMultiplex

      public boolean hasMultiplex()
      Does the message have multiplex versions?
      Returns:
      true/false
    • getMultiplexSignal

      public ArduinoSignal getMultiplexSignal()
      Obtain the multiplex signal.
      Returns:
      the multiplex signal
    • getMultiplexMap

      public Map<Long,​List<ArduinoSignal>> getMultiplexMap()
      Obtain the multiplex map.
      Returns:
      the map
    • 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