stella.command
Class SelectModeCcd

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.SelectModeCcd
All Implemented Interfaces:
Serializable, CcdCommand, TargetDependingCommand

public class SelectModeCcd
extends CommandEvent
implements CcdCommand, TargetDependingCommand

Takes a dark exposure with the given exposure time. Only if a second argument on the command line is present and giving a fits file name the data is saved.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class stella.CommandEvent
CommandEvent.Create
 
Field Summary
private  String readoutmode
          The requested mode.
 
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
SelectModeCcd(Object src)
          Constructs a abort adapter telescope, grabbing the type from the class name and setting the command time to the current system time.
SelectModeCcd(Object src, String type, long time)
          Constructs a new exposure abort command.
 
Method Summary
 String[] getLine()
          Returns the command line of the dark ccd command.
 String getReadoutMode()
          Returns the exposure time asociated with the darktime 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 properties registered.
private  void setReadoutMode(String to)
          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

readoutmode

private String readoutmode
The requested mode.

Constructor Detail

SelectModeCcd

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


SelectModeCcd

public SelectModeCcd(Object src,
                     String type,
                     long time)
Constructs a new exposure abort command. Per default no fits file is set.

Method Detail

registerTargetProperties

public void registerTargetProperties(Object setup)
Calculates the command line from the properties registered. Scans for the exposure time, ReservedConstants.EXPOSURETIME. Additionally, the fitsname-item, ReservedConstants.FITSNAME is looked up. If this key is present, a fits file name is generated according to FitsNameGenerator.getAbortFits(java.lang.String), otherwise the file name is set to null. A not-defined file name results in the data to be ereased.

Specified by:
registerTargetProperties in interface TargetDependingCommand
See Also:
FitsNameGenerator

getLine

public String[] getLine()
Returns the command line of the dark ccd 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.

getReadoutMode

public String getReadoutMode()
Returns the exposure time asociated with the darktime command.


setReadoutMode

private void setReadoutMode(String to)
Sets the exposure time.