|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
util.rmi.RmiEvent
stella.MessageEvent
stella.ErrorEvent
stella.error.TelescopePosition
public class TelescopePosition
A status mesage from the telescope delivering its position.
| Field Summary | |
|---|---|
private double |
alt
The value of the flux. |
private double |
altoff
The value of the flux. |
private double |
az
The value of the FWHM. |
private double |
azoff
The value of the FWHM. |
private static String |
FOLLOWUP
The follow-up (none). |
private static boolean |
PIPING
The pipe flag (true). |
private static int |
SEVERENESS
The severness level (interesting importance). |
private static String[] |
VARS
The names of the variables in the command line, index 1. |
| Fields inherited from class stella.ErrorEvent |
|---|
ABORT_EXPOSURE, ABORT_TARGET, ALARM_OFF, ALARM_ON, BAD_SEEING, BAD_WEATHER, CLEAR_TEL, CLOSE_COVER, CLOSE_ROOF, CLOSE_SHUTTER, CONT_TIME, ERROR_TOKEN, ERRORCOMBINE, ERRORPACKAGE, GOOD_WEATHER, HIGH_WIND, MAIL_HOME, MAIL_LOCAL, MOVE_HOME, MOVE_PARK, NONE, OPEN_COVER, OPEN_SHUTTER, PIPE, REACQUIRE, REPOSITION, RESEND_COMMAND, RESET_ADAPTER, RESET_CALIBRATION, RESET_CCD, RESET_ENV, RESET_ERRORS, RESET_SPEC, RESET_TEL, SHUT_DOWN, STATUS_TOKEN, STOP_TIME |
| Fields inherited from class stella.MessageEvent |
|---|
SEPCHAR |
| Fields inherited from class util.rmi.RmiEvent |
|---|
localHost, sourceName |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
TelescopePosition(Object src)
Constructs a new adapter fwhm status message. |
|
| Method Summary | |
|---|---|
double |
getAltitude()
Returns the value of the fwhm. |
double |
getAltitudeOffset()
Returns the value of the flux. |
double |
getAzimuth()
Returns the value of the fwhm. |
double |
getAzimuthOffset()
Returns the value of the flux. |
String |
getHuman()
Returns the human-readable part of the string. |
String[] |
getLine()
Returns the command lines as an string array. |
boolean |
parseLine(String[] all)
Parses the command lines submitted with the adapter fwhm status. |
void |
setAzAltAndOffsets(double newaz,
double newazoff,
double newalt,
double newaltoff)
Sets the fwhm and the flux. |
private void |
updateHuman()
Updates the human readable part of the status message. |
| Methods inherited from class stella.ErrorEvent |
|---|
consume, createError, createError, createError, createError, createError, createStatus, createStatus, createStatus, extractClassName, extractFollowUp, extractPipe, getErrorClass, getFollowUp, getSevereness, isConsumed, isPipe, isStatus, parseClassName, parseHeader, setFollowUp, setHuman, setHuman, setPipe |
| Methods inherited from class stella.MessageEvent |
|---|
checkType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toString |
| Methods inherited from class util.rmi.RmiEvent |
|---|
getHost, getSourceName, setSourceName |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final int SEVERENESS
private static final String FOLLOWUP
private static final boolean PIPING
private static final String[] VARS
private double az
private double azoff
private double alt
private double altoff
| Constructor Detail |
|---|
public TelescopePosition(Object src)
#setFWHMAndFlux.
| Method Detail |
|---|
public boolean parseLine(String[] all)
#fwhm and the #flux using the
StringTool.parseNumbers(java.lang.String, java.lang.String[]) method.
parseLine in class ErrorEventpublic String[] getLine()
getLine in class ErrorEventpublic String getHuman()
getHuman in class ErrorEventprivate void updateHuman()
ErrorEvent.setHuman(java.lang.String) with values constructed from the internal
variables.
public double getAzimuth()
getAzimuth in interface PointingKnowledge#getApparentAzimuthpublic double getAzimuthOffset()
getAzimuthOffset in interface PointingKnowledge#getApparentAzimuthpublic double getAltitude()
getAltitude in interface PointingKnowledge#getApparentAltitudepublic double getAltitudeOffset()
getAltitudeOffset in interface PointingKnowledge#getApparentAltitude
public void setAzAltAndOffsets(double newaz,
double newazoff,
double newalt,
double newaltoff)
newfwhm - The FWHM this status event should carry.newflux - The flux this status event should carry.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||