public class PinholeOffsetAdapter extends CommandEvent implements AdapterCommand, TargetDependingCommand, InitializerDepending
There are several ways to define this command with none-fixed exposure times.
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private Vector2D |
offset |
private static long |
serialVersionUID |
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
PinholeOffsetAdapter(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
PinholeOffsetAdapter(Object src,
String type,
long time)
Constructs a new exposure abort command.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getLine()
Returns the command line of the move telescope command.
|
Vector2D |
getOffset() |
void |
initWith(String init)
Registers an initializer which is a sequence of filter names, separated
by a colon.
|
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.
|
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, setSourceNamegetSourceprivate static final long serialVersionUID
private Vector2D offset
public PinholeOffsetAdapter(Object src)
public Vector2D getOffset()
public void initWith(String init)
initWith in interface InitializerDependingpublic 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 MessageEvent