public class PositionTelescope extends CommandEvent implements TelescopeCommand, ParameterDepending, InitializerDepending
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private double |
alt
The height actual equinox, in dgrees.
|
private double |
nautaz
The nautical azimuth, actual equinox, in dgrees.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
PositionTelescope(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
PositionTelescope(Object src,
String type,
long time)
Constructs a move telescope command.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAlt()
Returns the requested altitude of the telescope position in degrees.
|
double |
getAz()
Returns the nautical azimuth of the requested telescope position in
degrees.
|
String[] |
getLine()
Returns the command line of the move telescope command.
|
void |
initWith(String focus)
Use to set an azimuth and altitde position.
|
boolean |
parseLine(String[] all)
Parse the command line into ra and dec of the move command.
|
void |
registerParameter(Parameter pos)
Register the positional paramter
|
protected void |
setFields(double azext,
double altext)
Daughter access to the azimuth and elevation field.
|
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 double nautaz
private double alt
public PositionTelescope(Object src)
public PositionTelescope(Object src, String type, long time)
DTDConstants.OBJECT
element has been registered to
this command.MessageEvent.isValid()public void initWith(String focus)
initWith in interface InitializerDependingpublic void registerParameter(Parameter pos)
registerParameter in interface ParameterDependingpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic double getAz()
public double getAlt()
protected void setFields(double azext,
double altext)