|
MATSIM
|

Public Member Functions | |
| String | toString () |
| Object | putAttribute (final String objectId, final String attribute, final Object value) |
| Object | getAttribute (final String objectId, final String attribute) |
| Object | removeAttribute (final String objectId, final String attribute) |
| void | removeAllAttributes (final String objectId) |
| void | clear () |
A simple helper class to store arbitrary attributes (identified by Strings) for arbitrary objects (identified by String-Ids). Note that this implementation uses large amounts of memory for storing many attributes for many objects, it is not heavily optimized.
This class is not thread-safe.
More information can be found in the package's Javadoc.
Example(s):
Definition at line 44 of file ObjectAttributes.java.
| String org.matsim.utils.objectattributes.ObjectAttributes.toString | ( | ) |
Definition at line 49 of file ObjectAttributes.java.
| Object org.matsim.utils.objectattributes.ObjectAttributes.putAttribute | ( | final String | objectId, |
| final String | attribute, | ||
| final Object | value | ||
| ) |
Definition at line 65 of file ObjectAttributes.java.
Referenced by org.matsim.utils.objectattributes.ObjectAttributesXmlReader.endTag(), and org.matsim.utils.objectattributes.RunObjectAttributesExample.main().
| Object org.matsim.utils.objectattributes.ObjectAttributes.getAttribute | ( | final String | objectId, |
| final String | attribute | ||
| ) |
Definition at line 74 of file ObjectAttributes.java.
Referenced by org.matsim.utils.objectattributes.RunObjectAttributesExample.filterByAttributes().
| Object org.matsim.utils.objectattributes.ObjectAttributes.removeAttribute | ( | final String | objectId, |
| final String | attribute | ||
| ) |
Definition at line 82 of file ObjectAttributes.java.
| void org.matsim.utils.objectattributes.ObjectAttributes.removeAllAttributes | ( | final String | objectId | ) |
Definition at line 90 of file ObjectAttributes.java.
| void org.matsim.utils.objectattributes.ObjectAttributes.clear | ( | ) |
Deletes all attributes of all objects, and all objects-ids.
Definition at line 97 of file ObjectAttributes.java.
1.8.13