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 booleanequals(Object pThat)ObjectgetAttrValue(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.StringgetName()Obtain the name.ArduinoSystemgetOwner()Obtain the owner.ObjectgetRelationValue(ArduinoAttribute pAttr, ArduinoAttribute.ArduinoAttrObject pRelation)Obtain value for relation attribute.inthashCode()booleanreceivesMessage(ArduinoMessage pMessage)does the receive the message?booleanreceivesSignal(ArduinoSignal pSignal)does the node receive the signal?booleansendsMessage(ArduinoMessage pMessage)does the node send the message?booleansendsSignal(ArduinoSignal pSignal)does the node send the signal?StringtoString()
-
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:ArduinoNamedObjectObtain the name.- Specified by:
getNamein 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.ArduinoAttrObjectObtain value for attribute.- Specified by:
getAttrValuein 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
-