stella.command
Class StartExposingAuxiliary

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.StartExposingAuxiliary
All Implemented Interfaces:
Serializable, AuxiliaryCommand, InitializerDepending, TargetDependingCommand

public class StartExposingAuxiliary
extends CommandEvent
implements AuxiliaryCommand, TargetDependingCommand, InitializerDepending

The expose adapter command. It takes a stellar image on the guiding camera with a specified exposure time, specified in seconds. It is mandatory that the adapter sends back a stella.error.AuxiliaryFwhm status prior to sending the final done.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class stella.CommandEvent
CommandEvent.Create
 
Field Summary
private  double exposuretime
          The desired exposure time in seconds.
 
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
StartExposingAuxiliary(Object src)
          Constructs a abort adapter telescope, grabbing the type from the class name and setting the command time to the current system time.
StartExposingAuxiliary(Object src, String type, long time)
          Constructs a move telescope command.
 
Method Summary
 double getExposureTime()
          Returns the required exposure time, given in seconds.
 String[] getLine()
          Returns the command line of the move telescope command.
 void initWith(String init)
          Registers an parameter set to this command.
 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 mapping delivered in the DTDConstants.SETUP DOM-element.
 void setExposureTime(double time)
          Sets the exposure time.
 
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

exposuretime

private double exposuretime
The desired exposure time in seconds.

Constructor Detail

StartExposingAuxiliary

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


StartExposingAuxiliary

public StartExposingAuxiliary(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.SETUP element has been registered to this command.

See Also:
MessageEvent.isValid()
Method Detail

initWith

public void initWith(String init)
Registers an parameter set to this command. The parameter handed over is queried for its current value and this focus position is set.

Specified by:
initWith in interface InitializerDepending

registerTargetProperties

public void registerTargetProperties(Object setup)
Calculates the command line from the mapping delivered in the DTDConstants.SETUP DOM-element. It uses the ReservedConstants.EXPOSURETIME element within the map to derive the exposure time for the target.

Specified by:
registerTargetProperties in interface TargetDependingCommand

getLine

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

Specified by:
getLine in class MessageEvent
Returns:
An array containing all command lines.

parseLine

public boolean parseLine(String[] all)
Parse the command line into ra and dec of the move command.

Specified by:
parseLine in class MessageEvent
Returns:
True, if parsing was successful.

getExposureTime

public double getExposureTime()
Returns the required exposure time, given in seconds.


setExposureTime

public void setExposureTime(double time)
Sets the exposure time.

Parameters:
time - The exposure time in seconds.