Package gov.nasa.jpl.resource
Class IntegerResource
- All Implemented Interfaces:
ResourceContainer
-
Field Summary
Fields inherited from class gov.nasa.jpl.resource.Resource
interpolation, maximum, minimum, possibleStates, subsystem, units
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerResource
(int profile, String subsystem, String units) IntegerResource
(int profile, String subsystem, String units, String interpolation) IntegerResource
(int profile, String subsystem, String units, String interpolation, Integer minimum, Integer maximum) IntegerResource
(String subsystem) IntegerResource
(String subsystem, String units, String interpolation) -
Method Summary
Methods inherited from class gov.nasa.jpl.resource.Resource
addChangeListener, clearHistory, currentval, firstTimeSet, formUniqueName, getChangesDuringWindow, getDataType, getIndices, getInterpolation, getMaximumLimit, getMinimumLimit, getName, getPossibleStates, getSize, getSubsystem, getType, getUniqueName, getUnits, historyIterator, insertRecord, isFrozen, isIndexInArrayedResource, lastTimeSet, lastValue, max, min, nextTimeResourceSetToValue, nextTimeSet, priorTimeResourceSetToValue, priorTimeSet, registerResource, removeChangeListener, resourceHistoryHasElements, set, setFrozen, setIndices, setInterpolation, setMaximumLimit, setMinimumLimit, setName, setSubsystem, setUnits, valueAt, whenEqualTo, whenGreaterThan, whenGreaterThanOrEqualTo, whenLessThan, whenLessThanOrEqualTo, whenNotEqualTo
-
Constructor Details
-
IntegerResource
-
IntegerResource
-
IntegerResource
-
IntegerResource
-
IntegerResource
-
IntegerResource
public IntegerResource()
-
-
Method Details
-
profile
Description copied from class:Resource
Returns the default value of the resource before it is set() to a new value. Must be abstract since different data types have different intuitive defaults. -
add
public void add(int toAdd) -
subtract
public void subtract(int toSubtract) -
update
public void update()Description copied from class:Resource
No-op method that adapters can override in custom resources- Specified by:
update
in interfaceResourceContainer
- Overrides:
update
in classResource<Integer>
-