public class AcquireOffsetParameter extends AbstractRemoteParameter implements EventTrigger, RemoteOffsetParameter
get(). This get returns a
single-value map linking the unique to the az/alt offset. The fine acquire
unit may now apply this suggested offset, call clear() on this
parameter and restart its acquiring. The second use is to avoid
miss-identifications. Say that acquisition worked out on the fine field, but
just before starting the exposure, the fiber-viewing camera is asked to check
its acquisition. Again, the tiny camera will ask this parameter for the
suggested offset, compare it with the offset applied and continue in case of
a match (and start re-acquire if there is no match).PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
static String |
DEFNAME |
private long |
lastset
This is the system time the last setting occured.
|
private Map<Object,Vector2D> |
offset
This is the offset measured for the key-unique.
|
private Object |
sleeper
This is the object to notify whenever a offset was set.
|
DEFBIND, KEY_BINDKEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
AcquireOffsetParameter(Map<String,String> prop) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the offset without notifying the monitor.
|
Object |
get()
Returns a linking of the last unique to the offset measured as a map.
|
long |
getLastOffsetTime()
Returns the time of the last offset setting.
|
Map<Object,Vector2D> |
getOffset()
Returns a linking of the last unique to the offset measured as a map.
|
Object |
registerMonitor(Object waiter)
Registers the object to wake up on trigger events.
|
void |
remoteSetOffset(Object unique,
Vector2D off) |
Object |
set(Object val)
Signals that an offset has been measured.
|
Map<Object,Vector2D> |
setOffset(Object unique,
Vector2D azalt)
For the specified unique, we set a measured offset in azimuth and
altitude system, unit is degrees.
|
addRmiListener, bindToRegistry, exit, init, isValid, remoteGet, removeRmiListener, rescanned, unbindFromRegistrycreateParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, overrideDefaultName, register, setName, toStringclone, 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, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddRmiListener, remoteGet, removeRmiListenerbindToRegistry, isValid, unbindFromRegistrydefaultBoolean, 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 DEFNAME
private long lastset
private Object sleeper
public AcquireOffsetParameter(Map<String,String> prop) throws RemoteException
prop - RemoteExceptionpublic Object get()
get in interface ParameterParameter.get()public Map<Object,Vector2D> getOffset()
public Object set(Object val) throws UnsupportedOperationException
setOffset(java.lang.Object, math.Vector2D) method instead, as this is the more concise form. If a
monitor is registered to this parameter it is notified accordingly. The
system time is recorded and can be retrieved with
getLastOffsetTime(). (non-Javadoc)set in interface ParameterUnsupportedOperationException - If this parameter is read-only.Parameter.set(java.lang.Object)public Map<Object,Vector2D> setOffset(Object unique, Vector2D azalt)
unique - The unique of the object for which the offset was measuredazalt - The 2D offset in degrees, az-alt system.public Object registerMonitor(Object waiter)
EventTriggerregisterMonitor in interface EventTriggerpublic void clear()
setOffset(java.lang.Object, math.Vector2D) with null elements. Also clears the
time stamp.public long getLastOffsetTime()
public void remoteSetOffset(Object unique, Vector2D off) throws RemoteException
remoteSetOffset in interface RemoteOffsetParameterRemoteException