public class DarkCcd extends CommandEvent implements CcdCommand, TargetDependingCommand
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private double |
expose
The exposure time in seconds.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
DarkCcd(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
DarkCcd(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.
|
double |
getExposureTime()
Returns the exposure time asociated with the darktime command.
|
String[] |
getLine()
Returns the command line of the dark ccd 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 |
setExposureTime(double to)
Sets the exposure time.
|
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, setSourceNamegetSourcepublic DarkCcd(Object src)
public void registerTargetProperties(Object setup)
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.registerTargetProperties in interface TargetDependingCommandFitsNameGeneratorpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic double getExposureTime()
private void setExposureTime(double to)
public int getExpectedAcknowledgeNumber()
getExpectedAcknowledgeNumber in class CommandEvent