Package gov.nasa.jpl.resource
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 TypeMethodDescriptionvoid
Once the name is assigned, we add the resource (or resource units inside arrayed resource) to the global resource mapvoid
setIndices
(List<String> list) Set the name of the index of this object inside the containing arrayed resourcevoid
This names either the Resource or ArrayedResource with the provided name, which is gotten from reflectionvoid
update()
Updates either just the resource or all resources in the container
-
Method Details
-
setName
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
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
-