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 booleanequals(Object pThat)ArduinoNodefindNodeByName(String pName)find node by name.List<ArduinoAttribute>getAttributes()Obtain a list of all attributes in the system.ObjectgetAttrValue(ArduinoAttribute pAttr)Obtain value for attribute.StringgetCName()Obtain the CName.StringgetCommentForObject(ArduinoNamedObject pObject)Obtain the comment for an object (if any).List<ArduinoMessage>getMessages()Obtain a list of all messages in the system.StringgetName()Obtain the name.List<ArduinoNode>getNodes()Obtain the nodes in this system.inthashCode()StringtoString()
-
Method Details
-
getName
Description copied from interface:ArduinoNamedObjectObtain the name.- Specified by:
getNamein 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.ArduinoAttrObjectObtain value for attribute.- Specified by:
getAttrValuein 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
-