public class TargetMerit extends AbstractTargetValue implements TargetProviderDepending, GlobalDepending, Reloadable
GlobalDepending to allow proper merit calculation
and needs the TargetList parameter to retrieve current
observing conditions and the list of all targets.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
static String |
DEFNAME
The default name of this parameter.
|
private TargetDefinition |
forme
Reference to the target.
|
private GlobalGrouping |
set
The parameter set, already expanded.
|
private TargetProviding |
target
The parameter list 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 |
|---|
TargetMerit(Map<String,String> prop)
Constructs a new target merit.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormattedFor(TargetDefinition td)
Deviates the formatting to the
protected version in
AbstractParameter. |
Number |
getForTarget(TargetDefinition td)
Returns the merit of the target at the current conditions as a double
object.
|
Number |
getValue()
Returns the value of the current merit.
|
void |
registerGlobals(GlobalGrouping cluster)
Registers the parameter cluster.
|
void |
registerProvider(TargetProviding list)
Registers the parameter cluster and the target list.
|
void |
registerTarget(TargetDefinition forwhat)
Registers the target.
|
double |
rescanned(String key,
String old,
String newval)
Makes this method public, no further changes.
|
Number |
setValue(Number val)
Sets the airmass of the actual target.
|
get, setgetAsStar, getConstant, getSetupcreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, init, 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, waitreloadgetFormatted, 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, stringPropertiesinitpublic static final String DEFNAME
private TargetProviding target
private GlobalGrouping set
private TargetDefinition forme
public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic void registerProvider(TargetProviding list)
registerProvider in interface TargetProviderDependingpublic void registerGlobals(GlobalGrouping cluster)
registerGlobals in interface GlobalDependingpublic void registerTarget(TargetDefinition forwhat)
registerTarget in interface TargetDependingpublic Number getValue()
public Number setValue(Number val) throws UnsupportedOperationException
setValue in interface ValueUnsupportedOperationExceptionpublic Number getForTarget(TargetDefinition td)
getForTarget in interface TargetDependingParametergetForTarget in interface TargetDependingValuepublic String getFormattedFor(TargetDefinition td)
AbstractParameter.getFormattedFor in interface TargetDependingParametergetFormattedFor in class AbstractTargetParameter