|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
util.rmi.RmiEvent
stella.MessageEvent
stella.CommandEvent
stella.command.GuidingExposureAdapter
public class GuidingExposureAdapter
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class stella.CommandEvent |
|---|
CommandEvent.Create |
| Field Summary | |
|---|---|
private static ExposureTime |
calc
The exposure time calculator. |
private static Double |
DEFGUIDINGSIGNAL
The default S/N for acquire exposures. |
private Number |
expose
The exposure time in seconds. |
private File |
fits
The fits file where to save the guider-ccd data in. |
private Map |
parameters
The parameter handed over. |
| 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 | |
|---|---|
GuidingExposureAdapter(Object src)
Constructs a abort adapter telescope, grabbing the type from the class name and setting the command time to the current system time. |
|
GuidingExposureAdapter(Object src,
String type,
long time)
Constructs a new exposure abort command. |
|
| Method Summary | |
|---|---|
int |
getExpectedAcknowledgeNumber()
Returns the number of acknowledge events this command is expected to follow. |
double |
getExposureTime()
Returns the exposure time asociated with the darktime command. |
File |
getFits()
Returns the fits file asociated with the abort command. |
String[] |
getLine()
Returns the command line of the move telescope command. |
boolean |
parseLine(String[] all)
Parse the command line into ra and dec of the move command. |
void |
registerParameter(Parameter what)
Registers a parameter to this command. |
void |
registerTargetProperties(Object setup)
Calculates the command line from the properties registered. |
private void |
setExposureTime(double to)
Sets the exposure time. |
private void |
setFits(File to)
Sets the fits file name. |
| Methods inherited from class stella.CommandEvent |
|---|
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, 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 |
|---|
private Number expose
private File fits
private Map parameters
private static ExposureTime calc
private static final Double DEFGUIDINGSIGNAL
| Constructor Detail |
|---|
public GuidingExposureAdapter(Object src)
public GuidingExposureAdapter(Object src,
String type,
long time)
| Method Detail |
|---|
public void registerParameter(Parameter what)
registerParameter in interface ParameterDependingpublic void registerTargetProperties(Object setup)
ReservedConstants.EXPOSURETIME. Aditionally,
scans for the
fitsname-item, ReservedConstants.FITSNAME.
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.
registerTargetProperties in interface TargetDependingCommandFitsNameGeneratorpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic File getFits()
getFits in interface FileCarryingpublic double getExposureTime()
private void setExposureTime(double to)
private void setFits(File to)
public int getExpectedAcknowledgeNumber()
getExpectedAcknowledgeNumber in class CommandEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||