Package net.sourceforge.jarduino.message
Class ArduinoNode
java.lang.Object
net.sourceforge.jarduino.message.ArduinoNode
- All Implemented Interfaces:
ArduinoAttribute.ArduinoAttrObject
,ArduinoNamedObject
public class ArduinoNode extends Object implements ArduinoNamedObject, ArduinoAttribute.ArduinoAttrObject
ArduinoNode.
-
Field Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object pThat)
Object
getAttrValue(ArduinoAttribute pAttr)
Obtain value for attribute.List<ArduinoMessage>
getBorrowed()
Obtain the borrowed messages sent by this node.List<ArduinoMessage>
getMessages()
Obtain the messages sent by this node.String
getName()
Obtain the name.ArduinoSystem
getOwner()
Obtain the owner.Object
getRelationValue(ArduinoAttribute pAttr, ArduinoAttribute.ArduinoAttrObject pRelation)
Obtain value for relation attribute.int
hashCode()
boolean
receivesMessage(ArduinoMessage pMessage)
does the receive the message?boolean
receivesSignal(ArduinoSignal pSignal)
does the node receive the signal?boolean
sendsMessage(ArduinoMessage pMessage)
does the node send the message?boolean
sendsSignal(ArduinoSignal pSignal)
does the node send the signal?String
toString()
-
Field Details
-
NULL_NODE
The null node.- See Also:
- Constant Field Values
-
-
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
-
getMessages
Obtain the messages sent by this node.- Returns:
- the messages
-
getBorrowed
Obtain the borrowed messages sent by this node.- Returns:
- the borrowed messages
-
getAttrValue
Description copied from interface:ArduinoAttribute.ArduinoAttrObject
Obtain value for attribute.- Specified by:
getAttrValue
in interfaceArduinoAttribute.ArduinoAttrObject
- Parameters:
pAttr
- the attribute- Returns:
- the value
-
getRelationValue
public Object getRelationValue(ArduinoAttribute pAttr, ArduinoAttribute.ArduinoAttrObject pRelation)Obtain value for relation attribute.- Parameters:
pAttr
- the attributepRelation
- the relation- Returns:
- the value
-
sendsMessage
does the node send the message?- Parameters:
pMessage
- the message- Returns:
- true/false
-
sendsSignal
does the node send the signal?- Parameters:
pSignal
- the signal- Returns:
- true/false
-
receivesMessage
does the receive the message?- Parameters:
pMessage
- the message- Returns:
- true/false
-
receivesSignal
does the node receive the signal?- Parameters:
pSignal
- the signal- Returns:
- true/false
-
equals
-
hashCode
public int hashCode() -
toString
-