public class ExposureAbortCcd extends CommandEvent implements CcdCommand, TargetDependingCommand, ParameterDepending, FileCarrying
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private File |
fits
The fits file where to save the ccd data in.
|
private boolean |
wasabort
The result of the parameter query.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
ExposureAbortCcd(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
ExposureAbortCcd(Object src,
String type,
long time)
Constructs a new exposure abort command.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getExpectedAcknowledgeNumber()
Returns the number of acknowledge events this command is expected to
follow.
|
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 abort)
Checks if the parameter handed over is a
Trigger. |
void |
registerTargetProperties(Object setup)
Calculates the command line from the properties registered.
|
private void |
setFits(File to)
Sets the fits file name.
|
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, parseForStrings, templateToClassNamecheckType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toSkippedString, toStringgetHost, getSourceName, setSourceNamegetSourceprivate File fits
private boolean wasabort
public ExposureAbortCcd(Object src)
public void registerParameter(Parameter abort)
Trigger. If so, its
value is stored in the wasabort field and defines the
fits-file name transported with this command.registerParameter in interface ParameterDependingpublic void registerTargetProperties(Object setup)
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 FileCarryingprivate void setFits(File to)
public int getExpectedAcknowledgeNumber()
getExpectedAcknowledgeNumber in class CommandEvent