Interface ResourceContainer

All Known Implementing Classes:
ArrayedResource, BooleanResource, DoubleResource, DurationResource, IntegerResource, IntegratingResource, Resource, StringResource, SumDoubleResource, SumIntegerResource, TimeResource

public interface ResourceContainer
This interface is implemented by Resources and Arrayed Resources (which have a composition, not inheritance, relation with Resource) It is used *only* by the reflection methods to print things out to the XMLTOL, and should never be referred to in modeling
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Once the name is assigned, we add the resource (or resource units inside arrayed resource) to the global resource map
    void
    Set the name of the index of this object inside the containing arrayed resource
    void
    This names either the Resource or ArrayedResource with the provided name, which is gotten from reflection
    void
    Updates either just the resource or all resources in the container
  • Method Details

    • setName

      void setName(String s)
      This names either the Resource or ArrayedResource with the provided name, which is gotten from reflection
      Parameters:
      s - The string you want the instance to be named
    • setIndices

      void setIndices(List<String> list)
      Set the name of the index of this object inside the containing arrayed resource
      Parameters:
      list - Index name
    • registerResource

      void registerResource()
      Once the name is assigned, we add the resource (or resource units inside arrayed resource) to the global resource map
    • update

      void update()
      Updates either just the resource or all resources in the container