stella.ccd
Class WifsipTelescopeCaster
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
util.rmi.RmiPropertyContainer
util.rmi.AbstractRmiListener
stella.rmi.AbstractRmiCasterAndListener
stella.rmi.CasterTorso
stella.rmi.TelescopeCaster
stella.util.TelescopeAuxiliaryCaster
stella.ccd.WifsipTelescopeCaster
- All Implemented Interfaces:
- Cloneable, Remote, EventListener, Caster, CommandLaunching, ErrorSending, ErrorCaster, ReplyDeliverer, RmiAcknowledgeListener, RmiCommandCaster, RmiDoneListener, RmiErrorCaster, AlarmHandler, Focusable, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiCaster, RmiEventListener, RmiListener, RmiPropertyBearing
public class WifsipTelescopeCaster
- extends TelescopeAuxiliaryCaster
- implements Focusable
For wifsip, we allow access to the focussing of the telescope.
|
Method Summary |
double |
getMaximumFocus()
Returns the maximum focus step this unit can reach, which is
less than 80 something. |
double |
getMinimumFocus()
Returns the minimum focus step this unit can reach, which is > 0. |
long |
getTimeoutFor(TelescopeCommand tc)
For focus telescope commands we return an appropriate time. |
boolean |
setFocus(double mm)
To set a focus offset, we cast an offset command and wait. |
boolean |
setFocusOffset(double mm)
To set a focus offset, we cast an offset command and wait. |
| Methods inherited from class stella.rmi.CasterTorso |
addRmiCommandListener, announceInterest, castCommand, deregisterAtCaster, exit, getAcknowledgeTimeOut, getAlarmGroup, getClientName, isReady, recastCommand, registerAtCaster, registerReplySubscriber, removeRmiCommandListener, rmiGotAcknowledge, rmiGotDone, setOff, toString |
| Methods inherited from class stella.rmi.AbstractRmiCasterAndListener |
addErrorListener, addRmiErrorListener, bindToRegistry, getBindName, isValid, notifyErrorListener, removeErrorListener, removeRmiErrorListener, sendError, sendError, sendError, sendStatus, sendStatus, sendStatus, unbindFromRegistry |
| Methods inherited from class util.rmi.AbstractRmiListener |
allBound, blockBinding, blockBinding, disconnect, getIP, getListenerName, isConnected, listenerName, releaseBinding, releaseBinding, rescanned, startBinding, startBinding |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, 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, setObject, setProperties, setProperty, stringProperties |
| 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 |
KEY_MINIMUMFOCUS
public static final String KEY_MINIMUMFOCUS
- The minimum focus we allow with this method.
- See Also:
- Constant Field Values
KEY_MAXIMUMFOCUS
public static final String KEY_MAXIMUMFOCUS
- The minimum focus we allow with this method.
- See Also:
- Constant Field Values
DEFMAXIMUMFOCUS
private static final double DEFMAXIMUMFOCUS
- Soft limit for minimum focus (hard at 89.). Temperature mod at -5
- See Also:
- Constant Field Values
DEFMINIMUMFOCUS
private static final double DEFMINIMUMFOCUS
- Soft limit for minimum focus (hard at 0.). Temperature mod at +25.
- See Also:
- Constant Field Values
WifsipTelescopeCaster
public WifsipTelescopeCaster(Map<String,String> prop)
throws RemoteException
- Export of object is already done in the caster torso constructor.
- Throws:
RemoteException
getMinimumFocus
public double getMinimumFocus()
- Returns the minimum focus step this unit can reach, which is > 0.
- Specified by:
getMinimumFocus in interface Focusable
getMaximumFocus
public double getMaximumFocus()
- Returns the maximum focus step this unit can reach, which is
less than 80 something.
- Specified by:
getMaximumFocus in interface Focusable
getTimeoutFor
public long getTimeoutFor(TelescopeCommand tc)
- For focus telescope commands we return an appropriate time.
- Specified by:
getTimeoutFor in class TelescopeAuxiliaryCaster
setFocusOffset
public boolean setFocusOffset(double mm)
- To set a focus offset, we cast an offset command and wait. Done is sent
only when the focus is reached, not when the offset is applied.
- Specified by:
setFocusOffset in interface Focusable
setFocus
public boolean setFocus(double mm)
- To set a focus offset, we cast an offset command and wait. Done is sent
only when the focus is reached, not when the offset is applied.
- Specified by:
setFocus in interface Focusable