|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
stella.adapter.AdapterUnit
public abstract class AdapterUnit
The base class for adapter master sub-units that use the guider-ccd in some
way. Methods exist for checking
consitancy. Currently, a FocusUnit, a AcquireUnit and
a GuiderUnit exits.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
static String |
ACQUIRETYPE
Acquire frames start with this header, followed by date and count. |
private AbstractStarGuider |
guider
The image-processing unit. |
static String |
GUIDERTYPE
Guiding frames start with this header, followed by date and count. |
private boolean |
manual
If true, we are in manual mode and do not generate status events. |
private AdapterMaster |
master
The reference to the master. |
static String |
PYRAMIDTYPE
Guiding frames start with this header, followed by date and count. |
private OffsetCaster |
telescope
The communicator to send offset commands. |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
protected |
AdapterUnit(Map prop)
No default settings. |
| Method Summary | |
|---|---|
protected abstract ErrorEvent |
doUnitTask(String mode)
Commits the task of this unit. |
protected AbstractStarGuider |
getGuider()
Get the adapter helper that can be used for calculating image-realted quantities. |
protected AdapterMaster |
getMaster()
Returns the adapter master registered to this unit. |
protected OffsetCaster |
getTelescope()
Get the telescope communication. |
protected abstract String |
getUnitType()
Returns the type of this unit. |
protected boolean |
isManual()
Returns the manual status, normally inherited from the adapter master. |
protected boolean |
isValid()
Checks if all the required quantities are set and non-null. |
protected void |
resetUnit()
Resets the unit. |
protected void |
setGuider(AbstractStarGuider calculus)
Sets the adapter helper who knows everything image related. |
protected void |
setManual(boolean nostatus)
Sets manual mode, in which case we should not send status event, but rather use syslog. |
protected void |
setMaster(AdapterMaster chef)
Sets the adapter master. |
protected void |
setTelescope(OffsetCaster sendto)
Set the telescope communication. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ACQUIRETYPE
public static final String GUIDERTYPE
public static final String PYRAMIDTYPE
private boolean manual
private OffsetCaster telescope
private AbstractStarGuider guider
private AdapterMaster master
| Constructor Detail |
|---|
protected AdapterUnit(Map prop)
| Method Detail |
|---|
protected void setManual(boolean nostatus)
protected boolean isManual()
protected void setTelescope(OffsetCaster sendto)
protected OffsetCaster getTelescope()
isValid() returns true, this
will never return null.
protected void resetUnit()
protected void setGuider(AbstractStarGuider calculus)
protected void setMaster(AdapterMaster chef)
protected AdapterMaster getMaster()
protected AbstractStarGuider getGuider()
isValid() returns true, this
will never return null.
protected boolean isValid()
protected abstract ErrorEvent doUnitTask(String mode)
mode - If the unit supports more than a single mode, otherwise null
protected abstract String getUnitType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||