Class ArduinoSystem

java.lang.Object
net.sourceforge.jarduino.message.ArduinoSystem
All Implemented Interfaces:
ArduinoAttribute.ArduinoAttrObject, ArduinoNamedObject

public final class ArduinoSystem
extends Object
implements ArduinoNamedObject, ArduinoAttribute.ArduinoAttrObject
The system.
  • Method Details

    • getName

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

      public String getCName()
      Obtain the CName.
      Returns:
      the CName
    • getNodes

      public List<ArduinoNode> getNodes()
      Obtain the nodes in this system.
      Returns:
      the nodes
    • getMessages

      public List<ArduinoMessage> getMessages()
      Obtain a list of all messages in the system.
      Returns:
      the messages
    • getAttributes

      public List<ArduinoAttribute> getAttributes()
      Obtain a list of all attributes in the system.
      Returns:
      the 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
    • findNodeByName

      public ArduinoNode findNodeByName​(String pName) throws net.sourceforge.jarduino.message.ArduinoParser.ArduinoParserException
      find node by name.
      Parameters:
      pName - the node name.
      Returns:
      the node
      Throws:
      net.sourceforge.jarduino.message.ArduinoParser.ArduinoParserException - on error
    • getCommentForObject

      public String getCommentForObject​(ArduinoNamedObject pObject)
      Obtain the comment for an object (if any).
      Parameters:
      pObject - the object
      Returns:
      the comment (or null)
    • 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