stella.error
Class FieldOfView

java.lang.Object
  extended by java.util.EventObject
      extended by util.rmi.RmiEvent
          extended by stella.MessageEvent
              extended by stella.ErrorEvent
                  extended by stella.error.FieldOfView
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CleansedAcquireField, CleansedGuiderField, DetectedAcquireField, DetectedGuiderField, ExpectedAcquireField, ExpectedGuiderField, GhostField, MirrorField, SpuriousField, StripField

public abstract class FieldOfView
extends ErrorEvent

A status mesage from the adapter delivering the list of stars as calculated from the catalog list provided by FindAdapter or as seen on the guider, prior and after cleaning of non-stars.

See Also:
Serialized Form

Field Summary
private  int count
          The exposure number of the current acquire/guideing try.
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  List<Guiding.RawStar> stars
          The list of Guiding.RawStars.
private  Object unique
          The unique id of the current observation.
private  String unit
          The type of unti this field-of-view belongs to.
 
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
protected FieldOfView(Object src)
          Constructs a new field-of-view.
 
Method Summary
 String getSourceType()
          Returns the type of adapter/auxiliar unit that produed this event.
 List<Guiding.RawStar> getStars()
          Returns the List of stars.
 int getTry()
          Returns the running number in the adapter.
 Object getUnique()
          Returns the unique object id this event was generated within.
 boolean parseLine(String[] all)
          Parses the command lines submitted with the adapter fwhm status.
 void setID(String type, Object uniq, int expnr)
          Sets the ID of this status, which is the unit type that produced this event, the current unique number and the current exposure number.
 void setStars(List<Guiding.RawStar> catalog)
          Sets the fwhm and the flux.
 
Methods inherited from class stella.ErrorEvent
consume, createError, createError, createError, createError, createError, createStatus, createStatus, createStatus, extractClassName, extractFollowUp, extractPipe, getErrorClass, getFollowUp, getHuman, getLine, 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

SEVERENESS

private static final int SEVERENESS
The severness level (interesting importance).

See Also:
Constant Field Values

FOLLOWUP

private static final String FOLLOWUP
The follow-up (none). Ignored anyhow.

See Also:
Constant Field Values

PIPING

private static final boolean PIPING
The pipe flag (true).

See Also:
Constant Field Values

stars

private List<Guiding.RawStar> stars
The list of Guiding.RawStars.


unit

private String unit
The type of unti this field-of-view belongs to.


unique

private Object unique
The unique id of the current observation.


count

private int count
The exposure number of the current acquire/guideing try.

Constructor Detail

FieldOfView

protected FieldOfView(Object src)
Constructs a new field-of-view. The list must be set after construction for this status message to get valid.

Method Detail

parseLine

public boolean parseLine(String[] all)
Parses the command lines submitted with the adapter fwhm status. Extracts the #fwhm and the #flux using the StringTool#parseNumbers method.

Overrides:
parseLine in class ErrorEvent
Returns:
True, if parsing was successful.

getStars

public List<Guiding.RawStar> getStars()
Returns the List of stars.


setStars

public void setStars(List<Guiding.RawStar> catalog)
Sets the fwhm and the flux. After a call to this method, the status event is set valid. See main entry for units.

Parameters:
newfwhm - The FWHM this status event should carry.
newflux - The flux this status event should carry.

setID

public void setID(String type,
                  Object uniq,
                  int expnr)
Sets the ID of this status, which is the unit type that produced this event, the current unique number and the current exposure number.


getSourceType

public String getSourceType()
Returns the type of adapter/auxiliar unit that produed this event.


getUnique

public Object getUnique()
Returns the unique object id this event was generated within.


getTry

public int getTry()
Returns the running number in the adapter.