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 Details

  • Method Details

    • getOwner

      public ArduinoSystem getOwner()
      Obtain the owner.
      Returns:
      the owner
    • getName

      public String getName()
      Description copied from interface: ArduinoNamedObject
      Obtain the name.
      Specified by:
      getName in interface ArduinoNamedObject
      Returns:
      the name
    • getMessages

      public List<ArduinoMessage> getMessages()
      Obtain the messages sent by this node.
      Returns:
      the messages
    • getBorrowed

      public List<ArduinoMessage> getBorrowed()
      Obtain the borrowed messages sent by this node.
      Returns:
      the borrowed messages
    • getAttrValue

      public Object getAttrValue​(ArduinoAttribute pAttr)
      Description copied from interface: ArduinoAttribute.ArduinoAttrObject
      Obtain value for attribute.
      Specified by:
      getAttrValue in interface ArduinoAttribute.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 attribute
      pRelation - the relation
      Returns:
      the value
    • sendsMessage

      public boolean sendsMessage​(ArduinoMessage pMessage)
      does the node send the message?
      Parameters:
      pMessage - the message
      Returns:
      true/false
    • sendsSignal

      public boolean sendsSignal​(ArduinoSignal pSignal)
      does the node send the signal?
      Parameters:
      pSignal - the signal
      Returns:
      true/false
    • receivesMessage

      public boolean receivesMessage​(ArduinoMessage pMessage)
      does the receive the message?
      Parameters:
      pMessage - the message
      Returns:
      true/false
    • receivesSignal

      public boolean receivesSignal​(ArduinoSignal pSignal)
      does the node receive the signal?
      Parameters:
      pSignal - the signal
      Returns:
      true/false
    • equals

      public boolean equals​(Object pThat)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object