stella.command
Class PointingModelTelescope
java.lang.Object
java.util.EventObject
util.rmi.RmiEvent
stella.MessageEvent
stella.CommandEvent
stella.command.PointingModelTelescope
- All Implemented Interfaces:
- Serializable, InitializerDepending, TelescopeCommand
public class PointingModelTelescope
- extends CommandEvent
- implements TelescopeCommand, InitializerDepending
The start-guiding command. It is an adpater command because the guiding
camera is part of the adapter. The command is always valid, but the
transported guiding mode may change with an initializer or a
ParsedTarget#Setup.
- See Also:
- Serialized Form
|
Method Summary |
String[] |
getLine()
Returns the command line of the start guiding command. |
String |
getModel()
Returns the mode of the guiding. |
void |
initWith(String init)
If a pointing model is set from the outside. |
boolean |
parseLine(String[] all)
The command line is the guiding mode. |
| Methods inherited from class stella.MessageEvent |
checkType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toString |
DEFAULT
private String DEFAULT
- Default pointing model.
mode
private String mode
- The pointing model requested.
PointingModelTelescope
public PointingModelTelescope(Object src)
- Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
PointingModelTelescope
public PointingModelTelescope(Object src,
String type,
long time)
- Constructs a start guiding command. Only the header is fully qualified
with the provided argumnets. The command line can only be retrieved
after a
DTDConstants.SETUP
element has been registered to this command.
- See Also:
MessageEvent.isValid()
initWith
public void initWith(String init)
- If a pointing model is set from the outside.
- Specified by:
initWith in interface InitializerDepending
getLine
public String[] getLine()
- Returns the command line of the start guiding command.
- Specified by:
getLine in class MessageEvent
- Returns:
- An array containing all command lines.
parseLine
public boolean parseLine(String[] all)
- The command line is the guiding mode.
- Specified by:
parseLine in class MessageEvent
- Returns:
- True, if parsing was successful.
getModel
public String getModel()
- Returns the mode of the guiding. Defaults to
GuidingUnit#MODE_AUTO.