public class PinholeViewingMaster extends AdapterMaster implements AutoFocusControlling
AcquireMaster.ContinuousExposureGenericMaster.StandaloneReceiverTorso.CommandHandlerPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private AbstractFocussingUnit |
autofocus |
private static String |
DEFACQUIREOFFSET |
private static String |
DEFACQUIRETOOLCLASS |
private static long |
DEFAUTOFOCUSTIME
The default focus time.
|
private static long |
DEFCLEARTIME
No time required for a clear ccd.
|
private static String |
DEFCOARSECLASS |
private static String |
DEFETCSTRING |
private static long |
DEFFAINTFOCUSTIME
The default focus time.
|
private static String |
DEFFINECLASS |
private static double |
DEFFOCUSACCURACY
The default focus accuracy for zernike accept.
|
private static String |
DEFFOCUSCLASS |
private static float |
DEFFOCUSMAG
The minimum brightness for Zernike focusing.
|
private static long |
DEFFOCUSTIME
The default focus time.
|
private static String |
DEFGAUSSCLASS |
private static String |
DEFGAUSSSTRING |
private static String |
DEFGEOMETRYCLASS
Default field of fiew provideer.
|
private static String |
DEFGEOMETRYSTRING |
private static String |
DEFGUIDECLASS |
private static String |
DEFGUIDETOOLCLASS |
private static int |
DEFIMPROVECOARSE |
private static int |
DEFIMPROVEFINE |
private static String |
DEFMATCHCLASS |
private static String |
DEFMATCHSTRING |
private static String |
DEFPINHOLECLASS |
private static String |
DEFPINHOLESTRING |
private static String |
DEFSPILLCLASS |
private static String |
DEFVANISHCLASS |
static String |
KEY_AUTOFOCUSTIME
Time for the auto focus command.
|
static String |
KEY_FAINTFOCUSTIME
Time for the auto faint focus command.
|
static String |
KEY_FOCUSACCURACY
On auto-focus the required accuracy for temperature/zernike accept.
|
static String |
KEY_FOCUSMAG
Auto-focus Zernike required minimum brightness of focus star.
|
static String |
KEY_FOCUSTIME
Time for the focus command.
|
static String |
PREFIX_FOCUSUNIT
The properties of the
FocussingUnit. |
KEY_ACQUIREOFFSET, KEY_ACQUIRETIME, KEY_ACQUISITIONCCD, KEY_ALTITUDE, KEY_AZIMUTH, KEY_CLEARBIN, KEY_CLEARFRAME, KEY_CLEARGUIDINGBIN, KEY_CLEARGUIDINGFRAME, KEY_CLEARGUIDINGTIME, KEY_CLEARTIME, KEY_COLORTARGET, KEY_DEDITHER, KEY_DETARGET, KEY_FILEOVERSTRING, KEY_FINDTIME, KEY_FITSPRIOR, KEY_GUIDECCD, KEY_IMPROVECOARSE, KEY_IMPROVEFINE, KEY_MAGTARGET, KEY_MOVETIME, KEY_OFFSETDELAY, KEY_OFFSETWAIT, KEY_PARALLACTICANGLE, KEY_PROMPTTIME, KEY_RADITHER, KEY_RATARGET, KEY_STARTGUIDINGTIME, KEY_STOPGUIDINGTIME, KEY_TARGETNAME, POSTFIX_CLASS, POSTFIX_FILE, POSTFIX_STRING, PREFIX_ACQUIREGAUSS, PREFIX_ACQUIRETOOL, PREFIX_CATALOGMATCH, PREFIX_COARSEUNIT, PREFIX_ETC, PREFIX_FINEUNIT, PREFIX_FOV, PREFIX_GEOMETRY, PREFIX_GUIDEETC, PREFIX_GUIDEGAUSS, PREFIX_GUIDEGEOMETRY, PREFIX_GUIDEPINHOLE, PREFIX_GUIDETOOL, PREFIX_GUIDEUNIT, PREFIX_PINHOLE, PREFIX_SPILL, PREFIX_VANISHDEFUNIQUE, KEY_ABORTTIME, KEY_AUTOMATIC, KEY_COMMTIME, KEY_COMMUNICATOR, KEY_DRIVERS, KEY_HISTORYDB, KEY_INITTIME, KEY_NODB, KEY_OBSERVEDB, KEY_OVERRULEAUTO, KEY_PARKTIME, KEY_PERMISSIONDB, KEY_PROPOSALDB, KEY_QUITTIME, KEY_REAUTO, KEY_RESETTIME, KEY_SET, KEY_SHUTDOWNDELAY, KEY_STATUSTIME, KEY_TARGETDB, KEY_TASKDB, KEY_UNIQUE, KEY_USERDB, lastabort, lastinit, lastpark, lastreset, telescopeKEY_BIND, KEY_BINDNAME, KEY_COMMANDCASTER, KEY_ERRORCOOLKEY_ALIVE, KEY_EXPORTPORT, KEY_INIT, KEY_LISTENERNAME, KEY_RETRY, KEY_RETRYSLEEPKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORNAMING_EXTENSIONNAMING_EXTENSIONKEY_INITDEPTHKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
PinholeViewingMaster(Map<String,String> prop) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
abortMaster(CommandEvent cmd)
Method called to abort the device.
|
private boolean |
applyFocusFwhmFinish(double f0,
CcdDriver ccd,
Star focus,
ExposureTimeProviding etc,
TransparencyMeasuring haze) |
boolean |
autoFocus()
This method tries its best to acquire a sharp image.
|
boolean |
automatic()
Enables automatic operation.
|
private void |
checkAndPrepare(CcdDriver ccd,
Star focus,
ExposureTimeProviding etc) |
private AbstractFocussingUnit |
createFocusunit(String prefix) |
private boolean |
doAutoFocus(AbstractFocussingUnit.Method how) |
boolean |
focus(double mm)
Sets the focus in the telescope.
|
boolean |
focusOffset(double mm)
Sets the focus offset in the telescope.
|
protected int |
getAcknowledgeNumber(CommandEvent cmd)
Returns the number of acknowledge events produced for each command.
|
protected long |
getCompletionTime(CommandEvent cmd,
int acknr)
Returns the individual completion times.
|
protected void |
init2()
Has now driver, communication and parameter set.
|
boolean |
manual()
Disables automatic operation.
|
protected boolean |
processCommand(CommandEvent cmd,
int acknr)
Process the command.
|
protected boolean |
setFocus(double mm)
Directly moves the focus.
|
protected boolean |
setFocusOffset(double mm)
Directly offsets the focus.
|
private boolean |
sufficient(Vector2D f0) |
accepts, main, quitacquire, acquisitionGeometry, center, createSubsystemWithSet, doAcquire, doStartExposing, doStartGuiding, doStopExposing, doStopGuiding, find, getAcquisitionCcd, getAltitude, getAzimuth, getCoarseAcquisition, getGuidingCcd, getParallacticAngle, getStarDescriptions, guidingGeometry, hotPixelShift, hotPixelShiftGuide, initGuider, initializeMaster, initStep, offsetAzAlt, offsetXY, parkMaster, prepareAcquire, prepareCatalog, prepareDither, prepareGuidePivotOffset, preparePivotOffset, quitMaster, readoutGeometry, readoutGeometryGuide, resetCcd, resetCcdGuide, resetMaster, singleExposure, singleShot, singleShotGuide, startGuiding, statusMaster, stopGuiding, takeExposureaddErrorListener, addRmiErrorListener, createCommunicator, createCommunicator, exit, external, formatWithGlobals, getAllDrivers, getDriver, getHistorySql, getObserveSql, getOffsetCaster, getParameterByKey, getParameterByName, getParameterCluster, getParameterValueByKey, getParameterValueByName, getPermissionSql, getProposalSql, getStatus, getTargetSql, getTaskSql, getUnique, getUniqueId, getUserSql, initialize, isAlive, isAuto, isManual, isPassive, park, reload, rescanned, reset, resetAlarm, resetAllDrivers, restartAllDrivers, revert, rmiAddParameter, rmiCommand, rmiGet, rmiGetAllParameterNames, rmiRemoveParameter, rmiSet, setLastError, setOff, setParameterValueByKey, setParameterValueByName, setPassive, shutdown, zeroAllOmcaddRmiAcknowledgeListener, addRmiDoneListener, bindDefault, containsRemoteProperty, deregisterAtCaster, equals, getLastError, getRemoteProperties, getRemoteProperty, hashCode, notifyAcknowledgeListener, notifyDoneListener, registerAtCaster, removeRmiAcknowledgeListener, removeRmiDoneListener, sendAllPrematureDone, sendPrematureDone, setRemoteProperty, toString, unbindDefaultbindToRegistry, getBindName, isValid, notifyErrorListener, removeErrorListener, removeRmiErrorListener, sendError, sendError, sendError, sendStatus, sendStatus, sendStatus, unbindFromRegistryallBound, blockBinding, blockBinding, disconnect, getIP, getListenerName, isConnected, listenerName, releaseBinding, releaseBinding, startBinding, startBindingclone, 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, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesfinalize, getClass, notify, notifyAll, wait, wait, waitexternal, getStatus, initialize, park, quit, reset, setPassivebindToRegistry, isValid, unbindFromRegistryremoveErrorListenergetListenerNamedisconnect, isConnecteddefaultBoolean, 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 PREFIX_FOCUSUNIT
FocussingUnit.public static final String KEY_FOCUSACCURACY
public static final String KEY_FOCUSMAG
public static final String KEY_FOCUSTIME
public static final String KEY_AUTOFOCUSTIME
public static final String KEY_FAINTFOCUSTIME
private static final String DEFMATCHCLASS
private static final String DEFMATCHSTRING
private static final String DEFGEOMETRYCLASS
private static final String DEFGEOMETRYSTRING
private static final String DEFPINHOLECLASS
private static final String DEFPINHOLESTRING
private static final String DEFETCSTRING
private static final String DEFACQUIRETOOLCLASS
private static final String DEFVANISHCLASS
private static final String DEFGUIDETOOLCLASS
private static final String DEFSPILLCLASS
private static final String DEFGAUSSCLASS
private static final String DEFGAUSSSTRING
private static final String DEFCOARSECLASS
private static final int DEFIMPROVECOARSE
private static final String DEFFINECLASS
private static final int DEFIMPROVEFINE
private static final String DEFGUIDECLASS
private static final String DEFFOCUSCLASS
private static final String DEFACQUIREOFFSET
private static final long DEFCLEARTIME
private static final long DEFFOCUSTIME
private static final long DEFAUTOFOCUSTIME
private static final long DEFFAINTFOCUSTIME
private static final double DEFFOCUSACCURACY
private static final float DEFFOCUSMAG
private AbstractFocussingUnit autofocus
public PinholeViewingMaster(Map<String,String> prop) throws RemoteException
RemoteExceptionprotected void init2()
throws InitException
init2 in class AcquireMasterInitExceptionpublic boolean focus(double mm)
throws RemoteException
FocusControllingfocus in interface FocusControllingRemoteExceptionpublic boolean focusOffset(double mm)
throws RemoteException
FocusControllingfocusOffset in interface FocusControllingRemoteExceptionpublic boolean autoFocus()
throws RemoteException
AutoFocusControllingautoFocus in interface AutoFocusControllingRemoteExceptionpublic boolean automatic()
throws RemoteException
automatic in interface ListenerControllingautomatic in class AcquireMasterRemoteExceptionpublic boolean manual()
throws RemoteException
AcquireMaster.doStopGuiding() method to kill any ongoing guiding.manual in interface ListenerControllingmanual in class AcquireMasterRemoteExceptionprotected int getAcknowledgeNumber(CommandEvent cmd)
getAcknowledgeNumber in class AdapterMasterprotected long getCompletionTime(CommandEvent cmd, int acknr)
getCompletionTime in class AdapterMastercmd - The command to process.acknr - The number of the acknowledge that will be sent back.protected boolean processCommand(CommandEvent cmd, int acknr)
processCommand in class AdapterMasterprotected boolean abortMaster(CommandEvent cmd)
abortMaster in class AcquireMastercmd - Non-null in automatic mode.protected boolean setFocus(double mm)
throws FocussingException
FocussingExceptionprotected boolean setFocusOffset(double mm)
throws FocussingException
FocussingExceptionprivate boolean applyFocusFwhmFinish(double f0,
CcdDriver ccd,
Star focus,
ExposureTimeProviding etc,
TransparencyMeasuring haze)
throws FocussingException
FocussingExceptionprivate void checkAndPrepare(CcdDriver ccd, Star focus, ExposureTimeProviding etc) throws ConfigurationException, FocussingException
ccd - focus - etc - ConfigurationExceptionFocussingExceptionprivate boolean sufficient(Vector2D f0)
f0 - private boolean doAutoFocus(AbstractFocussingUnit.Method how) throws ConfigurationException, FocussingException
private AbstractFocussingUnit createFocusunit(String prefix) throws InitException
InitException