public class StartWatchMaster extends CommandEvent implements ScsCommand, TargetDependingCommand, ParameterDepending
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private long |
maxtime
The desired maximal exposure time as a long in ms.
|
private static double |
TOMILLI
The conversions from the time found in the xml-file to ms.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
StartWatchMaster(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
StartWatchMaster(Object src,
String type,
long time)
Constructs a move telescope command.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getLine()
Returns the command line of the move telescope command.
|
long |
getMaxTime()
Returns the stopwatch time as a long in ms.
|
boolean |
parseLine(String[] all)
Parse the command line into ra and dec of the move command.
|
void |
registerParameter(Parameter expose)
Registers an external parameter giving the maximum exposure time.
|
void |
registerTargetProperties(Object setup)
Calculates the command line from the star description delivered in the
DTDConstants.SETUP DOM-element. |
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, getExpectedAcknowledgeNumber, parseForStrings, templateToClassNamecheckType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toSkippedString, toStringgetHost, getSourceName, setSourceNamegetSourceprivate static final double TOMILLI
private long maxtime
public StartWatchMaster(Object src)
public StartWatchMaster(Object src, String type, long time)
DTDConstants.SETUP
element has been registered to
this command.MessageEvent.isValid()public void registerParameter(Parameter expose)
registerParameter in interface ParameterDependingpublic void registerTargetProperties(Object setup)
DTDConstants.SETUP DOM-element. It uses the
ReservedConstants.EXPOSURETIME key within the properties to
derive the principal exposure time for the object.registerTargetProperties in interface TargetDependingCommandpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic long getMaxTime()