public class TelescopeOffsets extends ErrorEvent implements ParameterConnected, PointingModelKnowledge, UniqueKnowledge
PointingKnowledge. We additionally stor information on the applied
pointing model, thus we implement PointingModelKnowledge.| Modifier and Type | Field and Description |
|---|---|
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 double |
pmalt
The value of the flux.
|
private double |
pmaz
The value of the FWHM.
|
private static int |
SEVERENESS
The severness level (interesting importance).
|
private Object |
unique
The unique id, on a separate line.
|
private static String[] |
VARS
The names of the variables in the command line, index 1.
|
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_TIMESEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
TelescopeOffsets(Object src)
Constructs a new adapter fwhm status message.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAltitude()
Returns the value of the fwhm.
|
double |
getAltitudeOffset()
Returns the value of the altitude offset, which is PM offset plus
applied offset.
|
double |
getAzimuth()
Returns the value of the fwhm.
|
double |
getAzimuthOffset()
Returns the value of the azimuth offset, which is PM offset plus
applied offset.
|
String |
getHuman()
Returns the human-readable part of the string.
|
String[] |
getLine()
Returns the command lines as an string array.
|
double |
getPointingModelAltitude()
Returns the value of the altitude offset, which is PM offset plus
applied offset.
|
double |
getPointingModelAzimuth()
Returns the value of the azimuth offset, which is PM offset plus
applied offset.
|
Object |
getUnique()
Sets the unique ID.
|
boolean |
parseLine(String[] all)
Parses the command lines submitted with the adapter fwhm status.
|
void |
registerUnique(Parameter uniq)
Sets the unique ID.
|
void |
setAzAltAndOffsets(double naz,
double npmaz,
double nazoff,
double nalt,
double npmalt,
double naltoff)
Sets the fwhm and the flux.
|
void |
setUniqueValue(Object u)
Sets the unique value, if we have no access to the parameter.
|
private void |
updateHuman()
Updates the human readable part of the status message.
|
consume, createError, createError, createError, createError, createError, createStatus, createStatus, createStatus, extractClassName, extractFollowUp, extractPipe, getErrorClass, getFollowUp, getSevereness, isConsumed, isPipe, isStatus, parseClassName, parseHeader, setFollowUp, setHuman, setHuman, setPipecheckType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toSkippedString, toStringgetHost, getSourceName, setSourceNamegetSourceprivate static final int SEVERENESS
private static final String FOLLOWUP
private static final boolean PIPING
private static final String[] VARS
private double az
private double pmaz
private double azoff
private double alt
private double pmalt
private double altoff
private Object unique
public TelescopeOffsets(Object src)
#setFWHMAndFlux.public boolean parseLine(String[] all)
#fwhm and the #flux using the
Strings.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 getPointingModelAzimuth()
getPointingModelAzimuth in interface PointingModelKnowledgepublic double getAzimuthOffset()
getAzimuthOffset in interface PointingKnowledge#getApparentAzimuthpublic double getAltitude()
getAltitude in interface PointingKnowledge#getApparentAltitudepublic double getPointingModelAltitude()
getPointingModelAltitude in interface PointingModelKnowledgepublic double getAltitudeOffset()
getAltitudeOffset in interface PointingKnowledge#getApparentAltitudepublic void setAzAltAndOffsets(double naz,
double npmaz,
double nazoff,
double nalt,
double npmalt,
double naltoff)
newfwhm - The FWHM this status event should carry.newflux - The flux this status event should carry.public void registerUnique(Parameter uniq)
registerUnique in interface UniqueKnowledgepublic void setUniqueValue(Object u)