Class ResourceList

java.lang.Object
gov.nasa.jpl.resource.ResourceList

public class ResourceList extends Object
  • Constructor Details

    • ResourceList

      public ResourceList()
  • Method Details

    • getResourceList

      public static ResourceList getResourceList()
    • resetResourceHistories

      public void resetResourceHistories()
    • makeAllResourcesUseTheirProfileAtInitialTime

      public void makeAllResourcesUseTheirProfileAtInitialTime()
    • getFirstResourceUsed

      public Resource getFirstResourceUsed()
    • getFirstResourceUsage

      public Time getFirstResourceUsage()
    • getLatestResourceUsage

      public Time getLatestResourceUsage()
    • registerResource

      public void registerResource(Resource toBeAdded)
    • getResourcesIterator

      public ResourcesIterator getResourcesIterator(Time queryStart, Time queryEnd)
    • getListOfAllResources

      public List<Resource> getListOfAllResources()
      Since ResourceList is now stored internally as a map to making reading in values faster, sometimes for operations that only happen once and can be slow we support putting out a list to be iterated over
      Returns:
      listOfAllResources, a list of all Resources defined in the adaptation
    • getNamesOfAllResourcesWithSubsystem

      public List<String> getNamesOfAllResourcesWithSubsystem(String subsystem)
    • getListOfAllResourcesSortedByDecreasingSize

      public List<Resource> getListOfAllResourcesSortedByDecreasingSize()
      Returns ResourceList sorted by number of nodes in each resource. Intended as diagnostic tool that adapters can use to tell which operations are taking extra time
      Returns:
    • get

      public Resource<?> get(String key)
    • length

      public int length()