public class OnSkyOffsetTelescope extends OffsetTelescope
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private double |
azimuth
The azimuth of the telescope, Nan for invalid/not known.
|
private double |
height
The height of the telescope, Nan for invalid/not known.
|
private static String |
NAN
The identifier in the string representation for invalid azimuth/h.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
OnSkyOffsetTelescope(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
OnSkyOffsetTelescope(Object src,
String id,
long time)
Constructs a new offset telescope command.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAzimuth()
Return the height of the telescope.
|
double |
getHeight()
Return the height of the telescope.
|
String[] |
getLine()
Returns the command line of the move telescope command.
|
boolean |
parseLine(String[] all)
Parse the command line into ra and dec of the move command.
|
void |
setAzimuth(double a)
Sets the height of the telescope, if currently known.
|
void |
setHeight(double h)
Sets the height of the telescope, if currently known.
|
getOffsetAltitude, getOffsetAzimuth, setOffsetclassNameToTemplate, 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 String NAN
private double azimuth
private double height
public OnSkyOffsetTelescope(Object src)
public OnSkyOffsetTelescope(Object src, String id, long time)
parseLine(java.lang.String[]) or the OffsetTelescope.setOffset(double, double) method are
called.public String[] getLine()
getLine in class OffsetTelescopepublic boolean parseLine(String[] all)
parseLine in class OffsetTelescopepublic void setHeight(double h)
public double getHeight()
public void setAzimuth(double a)
public double getAzimuth()