|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.adapter.AuxiliaryUnit
public abstract class AuxiliaryUnit
The base class for auxiliary master sub-units that use the guider-ccd and
maybe some other ccd in some
way. Methods exist for checking
consitancy. This class replaces the AdapterUnit on telescopes
with an auxiliary guiding telescope.
Currently, a AuxiliaryPinholeUnit, an AuxiliaryAcquireUnit
and a AuxiliaryGuiderUnit exits.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
static String |
COARSETYPE
Acquire frames start with this header, followed by date and count. |
static String |
FINETYPE
Acquire frames start with this header, followed by date and count. |
private AuxiliaryGuider |
guider
The image-processing unit. |
static String |
GUIDERTYPE
Guiding frames start with this header, followed by date and count. |
static String |
KEY_FALLBACK
The fallback unit window read-out size. |
static String |
KEY_GUIDERTILE
The tile number to use on the guider ccd. |
private boolean |
manual
If true, we are in manual mode and do not generate status events. |
private AuxiliaryMaster |
master
The master controling the auxiliary unit, used for unique & errors. |
static String |
PINHOLETYPE
Pinhole frames start with this header, followed by date and count. |
private OffsetCaster |
telescope
The communicator to send offset commands. |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
protected |
AuxiliaryUnit(Map<String,String> prop)
No default settings. |
| Method Summary | |
|---|---|
protected abstract ErrorEvent |
doAuxiliaryTask(String mode)
Commits the task of this unit. |
private Guiding.RawFrame |
fromTiler(Point2D around)
This method returns the Guiding#RawFrame this auxiliar
unit is currently focusing on. |
protected abstract String |
getAuxiliaryType()
Returns the type of this unit. |
File |
getBiasFrame()
Returns the file holding the bias image. |
long |
getBiasTime()
Returns the exposure time of the bias frame. |
Dimension |
getBinning()
Returns the auxiliary binning that should be used. |
File |
getDarkFrame()
Returns the file holding the dark image. |
long |
getDarkTime()
Returns the exposure time of the dark frame. |
protected abstract Point2D |
getFocusPoint()
This method returns a pixel-point on the guider-ccd that is or that is close to the focus of interest. |
protected AuxiliaryGuider |
getGuider()
Get the adapter helper that can be used for calculating image-realted quantities. |
protected AuxiliaryMaster |
getMaster()
Get the adapter helper that can be used for calculating image-realted quantities. |
Rectangle |
getReadoutFrame()
This method returns the Rectangle this auxiliar
unit is currently focusing on. |
protected OffsetCaster |
getTelescope()
Get the telescope communication. |
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 |
setGuider(AuxiliaryGuider 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(AuxiliaryMaster chef)
Sets the adapter helper who knows everything image related. |
protected void |
setTelescope(OffsetCaster sendto)
Set the telescope communication. |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Methods inherited from interface util.Initializable |
|---|
init |
| Field Detail |
|---|
public static final String COARSETYPE
public static final String FINETYPE
public static final String GUIDERTYPE
public static final String PINHOLETYPE
public static final String KEY_GUIDERTILE
public static final String KEY_FALLBACK
private boolean manual
private OffsetCaster telescope
private AuxiliaryGuider guider
private AuxiliaryMaster master
| Constructor Detail |
|---|
protected AuxiliaryUnit(Map<String,String> 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 setGuider(AuxiliaryGuider calculus)
protected AuxiliaryGuider getGuider()
isValid() returns true, this
will never return null.
protected void setMaster(AuxiliaryMaster chef)
protected AuxiliaryMaster getMaster()
isValid() returns true, this
will never return null.
protected boolean isValid()
public Rectangle getReadoutFrame()
Rectangle this auxiliar
unit is currently focusing on. If the Guider#RawFrame is
defined, we use it, otherwise we default to a frame of size
KEY_FALLBACK centered around the rotational center.
getReadoutFrame in interface Guiding.RawFramepublic Dimension getBinning()
getBinning in interface Guiding.RawFramepublic File getBiasFrame()
getBiasFrame in interface Guiding.RawFramepublic long getBiasTime()
getBiasTime in interface Guiding.RawFramepublic long getDarkTime()
getDarkTime in interface Guiding.RawFramepublic File getDarkFrame()
getDarkFrame in interface Guiding.RawFrameprivate Guiding.RawFrame fromTiler(Point2D around)
Guiding#RawFrame this auxiliar
unit is currently focusing on. It uses the value of the
KEY_GUIDERTILE plus the master's DarkTiler to return
the correct frame and binning. If the point on the ccd is null,
at least the binning should be applicable.
protected abstract Point2D getFocusPoint()
protected abstract ErrorEvent doAuxiliaryTask(String mode)
mode - An integer specifying the action to be taken.
protected abstract String getAuxiliaryType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||