public abstract class AcquiringUnit extends AdapterUnit
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
static String |
COARSE
Coarse acquire only.
|
static String |
COARSEFINE
Coarse and fine acquire in a row.
|
private static double |
DEFALTCHECK |
private static double |
DEFAZCHECK |
private static boolean |
DEFOFFSETDB
If true, offsets are recorded in database.
|
private static int |
DEFOFFSETKEEP
Maximum number of offset kept.
|
static String |
FINE
Fine acquire only.
|
private Map<Object,Vector2D> |
first
We record all first offsets passed to us up to a certain capacity.
|
static String |
KEY_ALTCHECK |
static String |
KEY_AZCHECK |
static String |
KEY_OFFSETDB
If true, offsets are recorded in database.
|
static String |
KEY_OFFSETKEEP
Maximum number of offset kept.
|
static String |
NONE
If no acquireing should be done.
|
private AcquireOffsetParameter |
offset
For interacting acquires, the offset parameter feed from auxiliary.
|
ACQUIRETYPE, GUIDERTYPE, PYRAMIDTYPEKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
AcquiringUnit(Map<String,String> p) |
| Modifier and Type | Method and Description |
|---|---|
protected Vector2D |
checkAcquire()
The acquiring unit can check if the last recorded offset is compatible
with the suggested one.
|
protected void |
databaseOffset(Object objid,
Vector2D degoff)
We try to write a valid offset to the database using the current unique
parameter and the first offset encountered.
|
protected void |
firstOffset(Object objid,
Vector2D degoff) |
protected abstract double |
getIncrease()
If acquire failed because of no-star detected, retrrieve this last
increase factor.
|
protected AcquireOffsetParameter |
getOffsetParameter() |
void |
setOffsetParameter(AcquireOffsetParameter off) |
doUnitTask, getGuider, getMaster, getTelescope, getUnitType, init, isManual, isValid, resetUnit, setGuider, setManual, setMaster, setTelescopeclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, 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, stringPropertiespublic static final String COARSEFINE
public static final String COARSE
public static final String FINE
public static final String NONE
public static final String KEY_OFFSETDB
public static final String KEY_OFFSETKEEP
public static final String KEY_ALTCHECK
public static final String KEY_AZCHECK
private static final boolean DEFOFFSETDB
private static final int DEFOFFSETKEEP
private static final double DEFALTCHECK
private static final double DEFAZCHECK
private AcquireOffsetParameter offset
protected abstract double getIncrease()
public void setOffsetParameter(AcquireOffsetParameter off)
protected Vector2D checkAcquire()
protected AcquireOffsetParameter getOffsetParameter()