Package gov.nasa.jpl.resource
Class ResourceList
java.lang.Object
gov.nasa.jpl.resource.ResourceList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResource<?>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 overReturns ResourceList sorted by number of nodes in each resource.getNamesOfAllResourcesWithSubsystem(String subsystem) static ResourceListgetResourcesIterator(Time queryStart, Time queryEnd) intlength()voidvoidregisterResource(Resource toBeAdded) void
-
Constructor Details
-
ResourceList
public ResourceList()
-
-
Method Details
-
getResourceList
-
resetResourceHistories
public void resetResourceHistories() -
makeAllResourcesUseTheirProfileAtInitialTime
public void makeAllResourcesUseTheirProfileAtInitialTime() -
getFirstResourceUsed
-
getFirstResourceUsage
-
getLatestResourceUsage
-
registerResource
-
getResourcesIterator
-
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
-
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
-
length
public int length()
-