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 Long
MULTI_NONE
The null multiplexId. -
Method Summary
Modifier and Type Method Description boolean
equals(Object pThat)
Object
getAttrValue(ArduinoAttribute pAttr)
Obtain value for attribute.ArduinoSignalDefinition
getDefinition()
Obtain the definition.ArduinoSignalFactor
getFactor()
Obtain the factor.Long
getMultiplexId()
Obtain the multiplexId.String
getName()
Obtain the name.ArduinoMessage
getOwner()
Obtain the owner.ArduinoSignalRange
getRange()
Obtain the range.List<ArduinoNode>
getReceivers()
Obtain the receivers.String
getUnits()
Obtain the units.ArduinoValues
getValues()
Obtain values.int
hashCode()
boolean
isFloat()
Does this signal use floats?boolean
isMultiplex()
Is this the multiplex signal.boolean
isSigned()
Does this signal use signed ints?void
setMultiplexId(Long pId)
Set the multiplexId.String
toString()
-
Field Details
-
MULTI_NONE
The null multiplexId.
-
-
Method Details
-
getOwner
Obtain the owner.- Returns:
- the owner
-
getName
Description copied from interface:ArduinoNamedObject
Obtain the name.- Specified by:
getName
in 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.ArduinoAttrObject
Obtain value for attribute.- Specified by:
getAttrValue
in interfaceArduinoAttribute.ArduinoAttrObject
- Parameters:
pAttr
- the attribute- Returns:
- the value
-
equals
-
hashCode
public int hashCode() -
toString
-