public class ObjectInLimit extends ErrorEvent implements PickConnected
reason field. This is a bit-field combining the following reasons:
AZIMUTH_MIN: The azimuth was below the minimum azimuth
allowed. AZIMUTH_MAX: The azimuth was above the maximum azimuth
allowed.ZENITH_MIN: The zenith distance was below the minimum
allowed.ZENITH_MAX: The zenith distance was above the maximum
allowed.DEROT_MIN: The derotator position was below the minimum
offset allowed. DEROT_MAX: derotator position was above the maximum
offset allowed.| Modifier and Type | Field and Description |
|---|---|
static int |
AZIMUTH_MAX
The bit-mask for azimuth-maximum violations.
|
static int |
AZIMUTH_MIN
The bit-mask for azimuth-minimum violations.
|
static int |
DEROT_MAX
The bit-mask for derotator-maximum violations.
|
static int |
DEROT_MIN
The bit-mask for derotator-minimum violations.
|
private static String |
FOLLOWUP
The follow-up (shutdown).
|
private static boolean |
PIPING
The pipe flag (false).
|
private int |
reason
The reason for the out-of-limit error.
|
private static int |
SEVERENESS
The severness level (fatal error).
|
static int |
ZENITH_MAX
The bit-mask for zenith-distance-maximum violations.
|
static int |
ZENITH_MIN
The bit-mask for zenith-distance-minimum violations.
|
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 |
|---|
ObjectInLimit(Object src)
Constructs a software error.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHuman()
Returns the human-readable part of the string.
|
String[] |
getLine()
Returns the command lines as an string array.
|
int |
getReason()
Returns the error-reasons as an integer.
|
boolean |
parseLine(String[] all)
Parses the error lines supplied.
|
void |
setReason(int cause)
Sets the reason.
|
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, setSourceNamegetSourcepublic static final int AZIMUTH_MIN
public static final int AZIMUTH_MAX
public static final int ZENITH_MIN
public static final int ZENITH_MAX
public static final int DEROT_MIN
public static final int DEROT_MAX
private static final int SEVERENESS
private static final String FOLLOWUP
private static final boolean PIPING
private int reason
public ObjectInLimit(Object src)
SEVERENESS level,
has a FOLLOWUP as a recovery strategy an does not pipe.public boolean parseLine(String[] all)
parseLine in class ErrorEventpublic String[] getLine()
getLine in class ErrorEventpublic String getHuman()
getHuman in class ErrorEventpublic int getReason()
public void setReason(int cause)