Attributes are set using the setAttribute method on the NetworkModel and Node classes. Each data object must be a string and attributes are read-only objects. Thus, in order to change the value of a data object or to add a new data object, the setAttribute method must be used. An attribute associated with a NetworkModel or a Node is removed by setting the value to null using setAttribute.
Public Member Functions | |
std::string | getKey () const |
Returns the key associated with this Attribute. | |
std::string | getValue () const |
Returns the value associated with this Attribute. |
|
Returns the key associated with this Attribute.
|
|
Returns the value associated with this Attribute.
|