Package net.sourceforge.jarduino.message
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 Summary
Modifier and Type Method Description void
addSignal(ArduinoSignal pSignal)
Add signal.boolean
equals(Object pThat)
List<ArduinoSignal>
getAllSignals()
Obtain a list of all the signals.Object
getAttrValue(ArduinoAttribute pAttr)
Obtain value for attribute.String
getId()
Obtain the id.int
getLength()
Obtain the length.Map<Long,List<ArduinoSignal>>
getMultiplexMap()
Obtain the multiplex map.ArduinoSignal
getMultiplexSignal()
Obtain the multiplex signal.String
getName()
Obtain the name.ArduinoNode
getSender()
Obtain the sender.List<ArduinoSignal>
getSignals()
Obtain the non-multiplex signals.ArduinoSystem
getSystem()
Obtain the system.boolean
hasFloat()
Does this message have float signals?int
hashCode()
boolean
hasMultiplex()
Does the message have multiplex versions?String
toString()
-
Method Details
-
addSignal
Add signal.- Parameters:
pSignal
- the signal
-
getId
Obtain the id.- Returns:
- the id
-
getName
Description copied from interface:ArduinoNamedObject
Obtain the name.- Specified by:
getName
in interfaceArduinoNamedObject
- Returns:
- the name
-
getLength
public int getLength()Obtain the length.- Returns:
- the length
-
getSender
Obtain the sender.- Returns:
- the sender
-
getSystem
Obtain the system.- Returns:
- the system
-
getSignals
Obtain the non-multiplex signals.- Returns:
- the signals
-
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
Obtain the multiplex signal.- Returns:
- the multiplex signal
-
getMultiplexMap
Obtain the multiplex map.- Returns:
- the map
-
getAttrValue
Description copied from interface:ArduinoAttribute.ArduinoAttrObject
Obtain value for attribute.- Specified by:
getAttrValue
in interfaceArduinoAttribute.ArduinoAttrObject
- Parameters:
pAttr
- the attribute- Returns:
- the value
-
equals
-
hashCode
public int hashCode() -
toString
-