Package net.sourceforge.jarduino.message
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 Summary
Modifier and Type Method Description boolean
equals(Object pThat)
ArduinoNode
findNodeByName(String pName)
find node by name.List<ArduinoAttribute>
getAttributes()
Obtain a list of all attributes in the system.Object
getAttrValue(ArduinoAttribute pAttr)
Obtain value for attribute.String
getCName()
Obtain the CName.String
getCommentForObject(ArduinoNamedObject pObject)
Obtain the comment for an object (if any).List<ArduinoMessage>
getMessages()
Obtain a list of all messages in the system.String
getName()
Obtain the name.List<ArduinoNode>
getNodes()
Obtain the nodes in this system.int
hashCode()
String
toString()
-
Method Details
-
getName
Description copied from interface:ArduinoNamedObject
Obtain the name.- Specified by:
getName
in interfaceArduinoNamedObject
- Returns:
- the name
-
getCName
Obtain the CName.- Returns:
- the CName
-
getNodes
Obtain the nodes in this system.- Returns:
- the nodes
-
getMessages
Obtain a list of all messages in the system.- Returns:
- the messages
-
getAttributes
Obtain a list of all attributes in the system.- Returns:
- the 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
-
findNodeByName
public ArduinoNode findNodeByName(String pName) throws net.sourceforge.jarduino.message.ArduinoParser.ArduinoParserExceptionfind node by name.- Parameters:
pName
- the node name.- Returns:
- the node
- Throws:
net.sourceforge.jarduino.message.ArduinoParser.ArduinoParserException
- on error
-
getCommentForObject
Obtain the comment for an object (if any).- Parameters:
pObject
- the object- Returns:
- the comment (or null)
-
equals
-
hashCode
public int hashCode() -
toString
-