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 voidaddSignal(ArduinoSignal pSignal)Add signal.booleanequals(Object pThat)List<ArduinoSignal>getAllSignals()Obtain a list of all the signals.ObjectgetAttrValue(ArduinoAttribute pAttr)Obtain value for attribute.StringgetId()Obtain the id.intgetLength()Obtain the length.Map<Long,List<ArduinoSignal>>getMultiplexMap()Obtain the multiplex map.ArduinoSignalgetMultiplexSignal()Obtain the multiplex signal.StringgetName()Obtain the name.ArduinoNodegetSender()Obtain the sender.List<ArduinoSignal>getSignals()Obtain the non-multiplex signals.ArduinoSystemgetSystem()Obtain the system.booleanhasFloat()Does this message have float signals?inthashCode()booleanhasMultiplex()Does the message have multiplex versions?StringtoString()
-
Method Details
-
addSignal
Add signal.- Parameters:
pSignal- the signal
-
getId
Obtain the id.- Returns:
- the id
-
getName
Description copied from interface:ArduinoNamedObjectObtain the name.- Specified by:
getNamein 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.ArduinoAttrObjectObtain value for attribute.- Specified by:
getAttrValuein interfaceArduinoAttribute.ArduinoAttrObject- Parameters:
pAttr- the attribute- Returns:
- the value
-
equals
-
hashCode
public int hashCode() -
toString
-