Package net.sourceforge.jarduino.message
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 Summary
Fields Modifier and Type Field Description static LongMULTI_NONEThe null multiplexId. -
Method Summary
Modifier and Type Method Description booleanequals(Object pThat)ObjectgetAttrValue(ArduinoAttribute pAttr)Obtain value for attribute.ArduinoSignalDefinitiongetDefinition()Obtain the definition.ArduinoSignalFactorgetFactor()Obtain the factor.LonggetMultiplexId()Obtain the multiplexId.StringgetName()Obtain the name.ArduinoMessagegetOwner()Obtain the owner.ArduinoSignalRangegetRange()Obtain the range.List<ArduinoNode>getReceivers()Obtain the receivers.StringgetUnits()Obtain the units.ArduinoValuesgetValues()Obtain values.inthashCode()booleanisFloat()Does this signal use floats?booleanisMultiplex()Is this the multiplex signal.booleanisSigned()Does this signal use signed ints?voidsetMultiplexId(Long pId)Set the multiplexId.StringtoString()
-
Field Details
-
MULTI_NONE
The null multiplexId.
-
-
Method Details
-
getOwner
Obtain the owner.- Returns:
- the owner
-
getName
Description copied from interface:ArduinoNamedObjectObtain the name.- Specified by:
getNamein interfaceArduinoNamedObject- Returns:
- the name
-
getUnits
Obtain the units.- Returns:
- the units
-
getDefinition
Obtain the definition.- Returns:
- the definition
-
getFactor
Obtain the factor.- Returns:
- the factor
-
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
Obtain values.- Returns:
- the values
-
isMultiplex
public boolean isMultiplex()Is this the multiplex signal.- Returns:
- true/false
-
getMultiplexId
Obtain the multiplexId.- Returns:
- the Id
-
setMultiplexId
Set the multiplexId.- Parameters:
pId- the multiplexId
-
getReceivers
Obtain the receivers.- Returns:
- the receivers
-
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
-