public class PilarTelescopeCaster extends TelescopeSubsidiaryCaster implements OffsetCaster
CasterClient is the ability to
send a single command and wait until the final done is received or a
KEY_MINTIMEOUT, KEY_DEGREETIMEOUT is surpassed. This is
done by invoking castOffsetAndWaitTelescopeCaster.TestPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static long |
DEFDEGREETIMEOUT
The default time-out for the
OffsetTelescope command. |
private static long |
DEFMINTIMEOUT
The default time-out for the
OffsetTelescope command. |
static String |
KEY_DEGREETIMEOUT
The time-out added per degree shift.
|
static String |
KEY_MINTIMEOUT
The minimum time-out for non-successful command submission.
|
KEY_ACKNOWLEDGECASTER, KEY_ACKNOWLEDGETIMEOUT, KEY_ALARMGROUP, KEY_BIND, KEY_DONECASTERKEY_ALIVE, KEY_EXPORTPORT, KEY_INIT, KEY_LISTENERNAME, KEY_RETRY, KEY_RETRYSLEEP, KEY_SHUTDOWNDELAYKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSNAMING_EXTENSIONKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
PilarTelescopeCaster(Map<String,String> prop)
Constructs a new adapter-to-telescope caster.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
castDitherAndWait(DitherTelescope offset)
Casts the dither command to the telescope and waits for notification on
the appropriate done event.
|
boolean |
castOffsetAndWait(OffsetTelescope offset)
Casts the offset command to the telescope and waits for notification on
the appropriate done event.
|
void |
castOffsetAtGuide(OffsetTelescope offset)
Casts the offset command to the telescope during guiding phase.
|
int |
getActiveOffsets()
At guide, the guider task may want to know how many offsets are currently
active to avoid overloading the telescope.
|
long |
getTimeoutFor(TelescopeCommand ce)
On some commands, we might be able to calculate a variable offset.
|
castCommandAndWait, castCommandAndWait, castCommandNoWait, clearAll, getActiveCommands, getShutdownCommand, handles, initgetExitCommandaddRmiCommandListener, announceInterest, castCommand, deregisterAtCaster, exit, getAcknowledgeTimeOut, getAlarmGroup, getClientName, isReady, recastCommand, registerAtCaster, registerReplySubscriber, removeRmiCommandListener, rmiGotAcknowledge, rmiGotDone, setOff, toStringaddErrorListener, addRmiErrorListener, bindToRegistry, getBindName, isValid, notifyErrorListener, removeErrorListener, removeRmiErrorListener, sendError, sendError, sendError, sendStatus, sendStatus, sendStatus, unbindFromRegistryallBound, blockBinding, blockBinding, disconnect, getIP, getListenerName, isConnected, listenerName, releaseBinding, releaseBinding, rescanned, startBinding, startBindingcontainsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemotePropertyclone, 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, waitcastCommandAndWaitcastCommand, getClientName, getExitCommand, getShutdownCommand, handles, isReady, recastCommandannounceInterest, registerReplySubscriberdefaultBoolean, 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, stringPropertiesgetListenerNamedisconnect, isConnectedbindToRegistry, isValid, unbindFromRegistryaddErrorListener, removeErrorListenerpublic static final String KEY_MINTIMEOUT
public static final String KEY_DEGREETIMEOUT
private static final long DEFMINTIMEOUT
OffsetTelescope command.private static final long DEFDEGREETIMEOUT
OffsetTelescope command.public PilarTelescopeCaster(Map<String,String> prop) throws RemoteException
TelescopeSubsidiaryCaster.init() method.RemoteExceptionpublic void castOffsetAtGuide(OffsetTelescope offset)
castOffsetAtGuide in interface OffsetCasteroffset - A OffsetTelescope commandpublic int getActiveOffsets()
getActiveOffsets in interface OffsetCasterpublic boolean castOffsetAndWait(OffsetTelescope offset)
OffsetTelescope command was received or a time-out
has occured. The time-out depends on the offset: to the minimal time-out
KEY_MINTIMEOUT an offset-depending KEY_DEGREETIMEOUT is
added by multiplying the second number with the desired offset in
degrees. Note that we have access to the telescope altitude via the
enclosing class.castOffsetAndWait in interface OffsetCasteroffset - A OffsetTelescope commandpublic boolean castDitherAndWait(DitherTelescope offset)
OffsetTelescope command was received or a time-out
has occured. The time-out depends on the offset: to the minimal time-out
KEY_MINTIMEOUT an offset-depending KEY_DEGREETIMEOUT is
added by multiplying the second number with the desired offset in
degrees. Note that we have access to the telescope altitude via the
enclosing class.castDitherAndWait in interface OffsetCasteroffset - A OffsetTelescope commandpublic long getTimeoutFor(TelescopeCommand ce)
getTimeoutFor in class TelescopeSubsidiaryCaster