public class MoveMirrorTelescope extends CommandEvent implements TelescopeCommand, TargetDependingCommand
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private int |
pos
The M3 position, 2 or 3
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
MoveMirrorTelescope(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
MoveMirrorTelescope(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.
|
int |
getPos()
Returns the right ascension of the target star.
|
boolean |
parseLine(String[] all)
Parse the command line into ra and dec of the move command.
|
void |
registerTargetProperties(Object setup)
Calculates the command line from the star description delivered in the
argument.
|
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, setSourceNamegetSourcepublic MoveMirrorTelescope(Object src)
public MoveMirrorTelescope(Object src, String type, long time)
DTDConstants.OBJECT
element has been registered to
this command.MessageEvent.isValid()public void registerTargetProperties(Object setup)
registerTargetProperties in interface TargetDependingCommandpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic int getPos()