Class AttributeContainer

java.lang.Object
repast.simphony.scenario.data.AttributeContainer
Direct Known Subclasses:
ContextData, ProjectionData

public abstract class AttributeContainer extends Object
Abstract base class for meta data that contains attributes and an id.
Author:
Nick Collier
  • Field Details

  • Constructor Details

    • AttributeContainer

      public AttributeContainer(String id)
  • Method Details

    • getId

      public String getId()
      Gets the id of this attribute container.
      Returns:
      the id of this attribute container.
    • addAttribute

      public void addAttribute(Attribute attribute)
      Adds an attribute to this AttributeContainer.
      Parameters:
      attribute - the attribute to add
    • attributes

      public Iterable<Attribute> 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.