public class PointingModelSave extends CommandEvent implements TelescopeCommand, ParameterDepending
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private static SimpleDateFormat |
df
The date formatter using day-grainity.
|
private static String |
SAVEEXT
The save-file extension.
|
private static String |
SAVELEAD
The save-file header.
|
private File |
unique
The unique identifier, gained from a
CurrentTime instance. |
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
PointingModelSave(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
PointingModelSave(Object src,
String type,
long time)
Construct a fully qualified abort telescope command.
|
| Modifier and Type | Method and Description |
|---|---|
private File |
formatDate(Date now)
Formate the given date into a file name.
|
String[] |
getLine()
Returns the command line of the move telescope command.
|
File |
getSaveFile()
Returns the right ascension of the target star.
|
boolean |
parseLine(String[] all)
Parse the command line into a focus position.
|
void |
registerParameter(Parameter uniq)
Registers a parameter which is normally the time.
|
void |
setSaveFile(File pos)
Sets the focus position.
|
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 transient SimpleDateFormat df
private static final String SAVELEAD
private static final String SAVEEXT
private File unique
CurrentTime instance.public PointingModelSave(Object src)
public void registerParameter(Parameter uniq)
#DATEFORMAT to get a valid date-id,
which is then squeezed between SAVELEAD and SAVEEXT
to form a valid file name. If the parameter is not a time, its string
value is used unchanged as the save file.registerParameter in interface ParameterDependingpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic File getSaveFile()
public void setSaveFile(File pos)