public class ExposeAdapter extends CommandEvent implements AdapterCommand, TargetDependingCommand, InitializerDepending
AdapterFwhm status prior to
sending the final done.CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private double |
exposuretime
The desired exposure time in seconds.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
ExposeAdapter(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
ExposeAdapter(Object src,
String type,
long time)
Constructs a move telescope command.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getExposureTime()
Returns the required exposure time, given in seconds.
|
String[] |
getLine()
Returns the command line of the move telescope command.
|
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 |
registerTargetProperties(Object setup)
Calculates the command line from the mapping delivered in the
DTDConstants.SETUP DOM-element. |
void |
setExposureTime(double time)
Sets the exposure time.
|
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, getExpectedAcknowledgeNumber, parseForStrings, templateToClassNamecheckType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toSkippedString, toStringgetHost, getSourceName, setSourceNamegetSourcepublic ExposeAdapter(Object src)
public ExposeAdapter(Object src, String type, long time)
DTDConstants.SETUP
element has been registered to
this command.MessageEvent.isValid()public void initWith(String init)
initWith in interface InitializerDependingpublic void registerTargetProperties(Object setup)
DTDConstants.SETUP DOM-element. It uses the
ReservedConstants.EXPOSURETIME element within the map to derive
the exposure time for the target.registerTargetProperties in interface TargetDependingCommandpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic double getExposureTime()
public void setExposureTime(double time)
time - The exposure time in seconds.