public class ZenithMerit extends AbstractMerit
KEY_IMPACT factor and a KEY_STEEPNESS.
The exact formular is:
gain(t) = w/zsHere, w is the
KEY_IMPACT factor and s is the
KEY_STEEPNESS. The airmass to the target must be provided in the
parameter set handed over.AirmassMerit,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFAIRMASS
Default airmass parameter name.
|
private static double |
DEFIMPACT
Default value for the priority impact.
|
private static double |
DEFSTEEPNESS
Default value for the priority stretch.
|
static String |
KEY_AIRMASS
The key pointing to the name of the airmass parameter.
|
static String |
KEY_IMPACT
The key linked to the impact of the airmass merit.
|
static String |
KEY_STEEPNESS
The key linked to the steepness of the airmass merit.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
ZenithMerit(Map prop)
Constructs a new airmass merit, defaulting the
KEY_IMPACT and
the KEY_STEEPNESS parameters. |
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection ignore,
long span)
Calculates the actual gain using the airmass of the target.
|
createMerit, getInitializer, initMeritaugment, augment, augment, augment, augment, clone, 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, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String KEY_IMPACT
public static final String KEY_STEEPNESS
public static final String KEY_AIRMASS
private static final double DEFIMPACT
private static final double DEFSTEEPNESS
private static final String DEFAIRMASS
public ZenithMerit(Map prop)
KEY_IMPACT and
the KEY_STEEPNESS parameters. Proper creation should be
done using the
AbstractMerit.createMerit(java.util.Map<java.lang.String, java.lang.String>)
method. This create method also takes care of proper parameter
overloading.public double getMerit(GlobalGrouping set, Appointable target, Collection ignore, long span)
KEY_STEEPNESS parameter.set - Current observing conditions.target - The actual target.ignore - All targets, observable or not.span - The relevant time span in ms.