Package repast.simphony.scenario.data
Class AttributeContainer
java.lang.Object
repast.simphony.scenario.data.AttributeContainer
- Direct Known Subclasses:
ContextData
,ProjectionData
Abstract base class for meta data that
contains attributes and an id.
- Author:
- Nick Collier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(Attribute attribute) Adds an attribute to this AttributeContainer.Gets an iterable over the attributes this contains.int
Gets the number of attributes contained by this container.getId()
Gets the id of this attribute container.
-
Field Details
-
id
-
attributes
-
-
Constructor Details
-
AttributeContainer
-
-
Method Details
-
getId
Gets the id of this attribute container.- Returns:
- the id of this attribute container.
-
addAttribute
Adds an attribute to this AttributeContainer.- Parameters:
attribute
- the attribute to add
-
attributes
Gets an iterable over the attributes this contains.- Returns:
- an iterable over the attributes this contains.
-
getAttributeCount
public int getAttributeCount()Gets the number of attributes contained by this container.- Returns:
- the number of attributes contained by this container.
-