public class TracktimeRemaining extends ErrorEvent implements ParameterConnected
MoveTelescope
command. It carries the maximum remaining tracking time until the
telescope reaches any limit switches or traverses the zenith. It has a
raised pipe flag to allow feeding of a proper parameter.
This status message is allways generated within the telescope. The human
readable part is a single line giving the number of seconds remaining.
In the java world this status will always be generated with the
ErrorEvent.createError(stella.MessageBin) method.
| Modifier and Type | Field and Description |
|---|---|
private static String |
FOLLOWUP
The follow-up (shutdown).
|
private static boolean |
PIPING
The pipe flag (false).
|
private long |
remain
The remaining track-time carried by this status, in ms.
|
private static int |
SEVERENESS
The severness level (status message).
|
ABORT_EXPOSURE, ABORT_TARGET, ALARM_OFF, ALARM_ON, BAD_SEEING, BAD_WEATHER, CLEAR_TEL, CLOSE_COVER, CLOSE_ROOF, CLOSE_SHUTTER, CONT_TIME, ERROR_TOKEN, ERRORCOMBINE, ERRORPACKAGE, GOOD_WEATHER, HIGH_WIND, MAIL_HOME, MAIL_LOCAL, MOVE_HOME, MOVE_PARK, NONE, OPEN_COVER, OPEN_SHUTTER, PIPE, REACQUIRE, REPOSITION, RESEND_COMMAND, RESET_ADAPTER, RESET_CALIBRATION, RESET_CCD, RESET_ENV, RESET_ERRORS, RESET_SPEC, RESET_TEL, SHUT_DOWN, STATUS_TOKEN, STOP_TIMESEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
TracktimeRemaining(Object src)
Constructs a track time remaining status.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getTrackTimeRemaining()
Returns the tracking time as carried by the status in ms.
|
boolean |
parseLine(String[] all)
Parses the command lines submitted with this status event.
|
void |
setTrackTimeRemaining(long time)
Sets the track time remaining.
|
consume, createError, createError, createError, createError, createError, createStatus, createStatus, createStatus, extractClassName, extractFollowUp, extractPipe, getErrorClass, getFollowUp, getHuman, getLine, getSevereness, isConsumed, isPipe, isStatus, parseClassName, parseHeader, setFollowUp, setHuman, setHuman, setPipecheckType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toSkippedString, toStringgetHost, getSourceName, setSourceNamegetSourceprivate static final int SEVERENESS
private static final String FOLLOWUP
private static final boolean PIPING
private long remain
public TracktimeRemaining(Object src)
SEVERENESS level,
has a FOLLOWUP as a recovery strategy an does pipe.public boolean parseLine(String[] all)
parseLine in class ErrorEventpublic long getTrackTimeRemaining()
TrackTime paramter then grabs the value and
counts down from it.public void setTrackTimeRemaining(long time)
time - The remaining track-time in ms.