public class ScientificCcd extends CommandEvent implements CcdCommand, TargetDependingCommand, ParameterDepending, InitializerDepending, SequencerDepending
There are several ways to define this command with none-fixed exposure times.
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private static ExposureTime |
calc
The exposure time calculator.
|
private int |
current
Current active filter.
|
private Number |
expose
The exposure time in seconds.
|
private String |
fitsname
The fits file where to save the ccd data in.
|
private List<Double> |
increase
The exposure time increase in fractions.
|
private Map<String,Object> |
parameters
The parameter handed over.
|
private boolean |
store
If false, data is not stored permanently.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
ScientificCcd(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
ScientificCcd(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 |
getFitsName()
Returns the fits file asociated with the abort command.
|
String[] |
getLine()
Returns the command line of the move telescope command.
|
void |
initWith(String init)
Registers an initializer which is a sequence of filter names, separated
by a colon.
|
boolean |
isStore()
Returns true, if data should be stored.
|
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 |
registerSequencingParameters(Map<String,Object> loop)
Sets the sequence loop, but subtracts one from it as the first loop index
is 1.
|
void |
registerTargetProperties(Object setup)
Calculates the command line from the properties registered.
|
private void |
setExposureTime(double to)
Sets the exposure time.
|
private void |
setFitsName(String 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 Number expose
private int current
private String fitsname
private boolean store
private static ExposureTime calc
public ScientificCcd(Object src)
public void initWith(String init)
initWith in interface InitializerDependingpublic void registerParameter(Parameter what)
registerParameter in interface ParameterDependingpublic void registerSequencingParameters(Map<String,Object> loop)
registerSequencingParameters in interface SequencerDependingpublic 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 String getFitsName()
public double getExposureTime()
public boolean isStore()
private void setExposureTime(double to)
private void setFitsName(String to)
public int getExpectedAcknowledgeNumber()
getExpectedAcknowledgeNumber in class CommandEvent