public class PositionRoof extends CommandEvent implements EnvironmentCommand, ParameterDepending
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private double |
az
The azimuth position, in dgrees.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
PositionRoof(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
PositionRoof(Object src,
String type,
long time)
Constructs a move telescope command.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getLine()
Returns the command line of the move telescope command.
|
double |
getPosition()
Returns the right ascension of the target star.
|
boolean |
parseLine(String[] all)
Parse the command line into a focus position.
|
void |
registerParameter(Parameter az)
Registers an parameter set to this command.
|
void |
setPosition(double 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, setSourceNamegetSourcepublic PositionRoof(Object src)
public PositionRoof(Object src, String type, long time)
DTDConstants.OBJECT
element has been registered to
this command.MessageEvent.isValid()public void registerParameter(Parameter az)
registerParameter in interface ParameterDependingpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic double getPosition()
public void setPosition(double pos)