stella.command
Class AcquireAuxiliary

java.lang.Object
  extended by java.util.EventObject
      extended by util.rmi.RmiEvent
          extended by stella.MessageEvent
              extended by stella.CommandEvent
                  extended by stella.command.StarCommand
                      extended by stella.command.AcquireAuxiliary
All Implemented Interfaces:
Serializable, AuxiliaryCommand, InitializerDepending, TargetDependingCommand

public class AcquireAuxiliary
extends StarCommand
implements AuxiliaryCommand, InitializerDepending

The acquire command. It is an adapter command because the field-of-view camera is part of the adapter. This command provides the current position, brightness (Johnson V) and color index B-V of the target star.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class stella.CommandEvent
CommandEvent.Create
 
Field Summary
private  String mode
          The acquire mode requested.
 
Fields inherited from class stella.CommandEvent
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATOR
 
Fields inherited from class stella.MessageEvent
SEPCHAR
 
Fields inherited from class util.rmi.RmiEvent
localHost, sourceName
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AcquireAuxiliary(Object src)
          Constructs a abort adapter telescope, grabbing the type from the class name and setting the command time to the current system time.
AcquireAuxiliary(Object src, String type, long time)
          Constructs a move telescope command.
 
Method Summary
 void additionalCommands(List<String> tokens)
          The additional command line parameter is the acquire mode.
 String[] getLine()
          Returns the command line of the move telescope command.
 String getMode()
          Returns the acquire mode.
 void initWith(String init)
          If a guiding mode is set from the outside.
 
Methods inherited from class stella.command.StarCommand
getBV, getDec, getMag, getRa, getStar, parseLine, registerTargetProperties
 
Methods inherited from class stella.CommandEvent
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, getExpectedAcknowledgeNumber, parseForStrings, templateToClassName
 
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
 
Methods inherited from class util.rmi.RmiEvent
getHost, getSourceName, setSourceName
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mode

private String mode
The acquire mode requested.

Constructor Detail

AcquireAuxiliary

public AcquireAuxiliary(Object src)
Constructs a abort adapter telescope, grabbing the type from the class name and setting the command time to the current system time.


AcquireAuxiliary

public AcquireAuxiliary(Object src,
                        String type,
                        long time)
Constructs a move telescope command. Only the header is fully qualified with the provided argumnets. The command line can only be retrieved after a DTDConstants.OBJECT element has been registered to this command.

See Also:
MessageEvent.isValid()
Method Detail

initWith

public void initWith(String init)
If a guiding mode is set from the outside.

Specified by:
initWith in interface InitializerDepending

getLine

public String[] getLine()
Returns the command line of the move telescope command.

Overrides:
getLine in class StarCommand
Returns:
An array containing all command lines.

additionalCommands

public void additionalCommands(List<String> tokens)
The additional command line parameter is the acquire mode.

Specified by:
additionalCommands in class StarCommand

getMode

public String getMode()
Returns the acquire mode.