stella.command
Class GeometryCcd

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

public class GeometryCcd
extends CommandEvent
implements CcdCommand, InitializerDepending, TargetDependingCommand, ParameterDepending

Takes a bias exposure. Only if a second 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  int xbin
          The x-binning in pixel.
private  int xoff
          The x-offset in pixel.
private  int xsize
          The x-size in pixel.
private  int ybin
          The y-binning in pixel.
private  int yoff
          The y-offset in pixel.
private  int ysize
          The y-size in pixel.
 
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
GeometryCcd(Object src)
          Constructs a abort adapter telescope, grabbing the type from the class name and setting the command time to the current system time.
GeometryCcd(Object src, String type, long time)
          Constructs a new exposure abort command.
 
Method Summary
 String[] getLine()
          Returns the command line of the move telescope command.
 int getXBin()
          Returns the x-binning in pixel.
 int getXOff()
          Returns the x-offset in pixel.
 int getXSize()
          Returns the x-size in pixel.
 int getYBin()
          Returns the y-binning in pixel.
 int getYOff()
          Returns the y-offset in pixel.
 int getYSize()
          Returns the y-size in pixel.
 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 registerParameter(Parameter p)
          Registers a frame-delivering parameter.
 void registerTargetProperties(Object setup)
          Calculates the command line from the properties registered.
 
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

xoff

private int xoff
The x-offset in pixel.


yoff

private int yoff
The y-offset in pixel.


xsize

private int xsize
The x-size in pixel.


ysize

private int ysize
The y-size in pixel.


xbin

private int xbin
The x-binning in pixel.


ybin

private int ybin
The y-binning in pixel.

Constructor Detail

GeometryCcd

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


GeometryCcd

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

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

registerParameter

public void registerParameter(Parameter p)
Registers a frame-delivering parameter.

Specified by:
registerParameter in interface ParameterDepending

registerTargetProperties

public void registerTargetProperties(Object setup)
Calculates the command line from the properties registered. Scans for the coresponding offset, size, and binning properties. All of these that are present are set, others remain at zero.

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.

getXOff

public int getXOff()
Returns the x-offset in pixel.


getYOff

public int getYOff()
Returns the y-offset in pixel.


getXSize

public int getXSize()
Returns the x-size in pixel.


getYSize

public int getYSize()
Returns the y-size in pixel.


getXBin

public int getXBin()
Returns the x-binning in pixel.


getYBin

public int getYBin()
Returns the y-binning in pixel.