stella.parameter
Class TrackTime
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractValue
stella.parameter.StopWatch
stella.parameter.CountDownWatch
stella.parameter.TrackTime
- All Implemented Interfaces:
- Cloneable, ErrorDependingParameter, Parameter, StatePreserving, ParameterDepending, Value, ExitCleaning, Initializable, LocalizedSupplying, Preserving, PropertySupplying, Reloadable, ResourceSupplying
public class TrackTime
- extends CountDownWatch
- implements ErrorDependingParameter
A general variable representing the tracking time remaining for the actual
object. This time s deduced from a TracktimeRemaining status message
sent from the telescope after a move command.
This parameter acts as a count-down, meaning that the value it returns is
always the currently remaining track time. The total track time can always
be queried with CountDownWatch.getCountDown().
|
Field Summary |
static String |
DEFNAME
The name of this global (ra). |
|
Constructor Summary |
TrackTime(Map prop)
Constructs a new global representing the actual object's ra. |
| Methods inherited from class stella.parameter.AbstractParameter |
createParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, init, register, setName, toString |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
DEFNAME
public static final String DEFNAME
- The name of this global (ra).
- See Also:
- Constant Field Values
TrackTime
public TrackTime(Map prop)
- Constructs a new global representing the actual object's ra.
registerError
public void registerError(ErrorEvent ttr)
- Registers an error to this parameter. If the error is a status
message of type
TracktimeRemaining, then a new count-down time
is set and the count down is commenced.
- Specified by:
registerError in interface ErrorDependingParameter
getForError
public Object getForError(ErrorEvent ttr)
- Gets the declination of the target star.
- Specified by:
getForError in interface ErrorDependingParameter
- Returns:
- A Double holding the target star's declination.