public class OptimalAdc extends AbstractTargetParameter implements Initializable, ParameterDepending
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private TargetDependingValue |
de
The target depending parameter that is the height of the target.
|
private static String |
DEFADC
Default ADC mapping.
|
private static String |
DEFCONSTANT
Default setup name.
|
private static String |
DEFDECTARGET
Default altitude-target parameter name.
|
private static String |
DEFLATITUDE
Default altitude-target parameter name.
|
private static String |
DEFSETUP
Default setup names.
|
private static String |
DEFTAUTARGET
Default altitude-target parameter name.
|
private NavigableMap<Double,String> |
elevation
Maps minimum target heights to ADC names.
|
private Number |
exposuretime
The exposure time set for the registered target.
|
static String |
KEY_ADC
For each ADC present, we link the name to min height.
|
static String |
KEY_CONSTANT
The actual parameter name within the setup.
|
static String |
KEY_DECTARGET
The name of the
TauTarget parameter. |
static String |
KEY_LATITUDE
The name of the
TauTarget parameter. |
static String |
KEY_SETUP
The setup ID where the parameter is found.
|
static String |
KEY_TAUTARGET
The name of the
TauTarget parameter. |
private Value |
phi
The target depending parameter that is the height of the target.
|
private TargetDependingValue |
tau
The target depending parameter that is the height of the target.
|
KEY_INDEXKEY_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 |
|---|
OptimalAdc(Map<String,String> prop) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Returns the value of this parameter as an object.
|
private String |
getAdc(double expt,
double tau,
double de,
double phi) |
private Number |
getExposureTime(TargetDefinition target)
Scans all known setups for occurrence of exposure time.
|
Object |
getForTarget(TargetDefinition target)
Returns the parameter value using some values of the target definition
handed over.
|
void |
init()
Creates the conversion table.
|
void |
registerParameter(Parameter p)
A parameter depending command should drain the necessarry information
to get valid out of a parameter value.
|
void |
registerTarget(TargetDefinition star)
Registers a target definition to this instance.
|
Object |
set(Object val)
Sets the value of this parameter.
|
getAsStar, getConstant, getFormattedFor, getSetupcreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, overrideDefaultName, register, rescanned, 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, waitgetFormatted, getName, getStringdefaultBoolean, 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 KEY_ADC
public static final String KEY_SETUP
public static final String KEY_CONSTANT
public static final String KEY_TAUTARGET
TauTarget parameter.public static final String KEY_DECTARGET
TauTarget parameter.public static final String KEY_LATITUDE
TauTarget parameter.private static final String DEFADC
private static final String DEFSETUP
private static final String DEFCONSTANT
private static final String DEFTAUTARGET
private static final String DEFDECTARGET
private static final String DEFLATITUDE
private NavigableMap<Double,String> elevation
private Number exposuretime
private TargetDependingValue tau
private TargetDependingValue de
private Value phi
public void init()
throws InitException
init in interface Initializableinit in class AbstractParameterInitExceptionpublic Object getForTarget(TargetDefinition target)
TargetDependingParameterParameter.get() still return the old
value.getForTarget in interface TargetDependingParameterprivate String getAdc(double expt, double tau, double de, double phi)
private Number getExposureTime(TargetDefinition target)
target - public Object get()
Parameterpublic Object set(Object val) throws UnsupportedOperationException
Parameterset in interface ParameterUnsupportedOperationException - If this parameter is read-only.public void registerTarget(TargetDefinition star)
TargetDependingregisterTarget in interface TargetDependingpublic void registerParameter(Parameter p)
ParameterDependingregisterParameter in interface ParameterDepending