public class BearingMerit extends AbstractMerit
KEY_ALTBEARING and KEY_AZBEARING is
supplied, the current value of the bearing parameter is querried. If this,
too, is undefined, zero is returned.| Modifier and Type | Class and Description |
|---|---|
static class |
BearingMerit.Bearing |
| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFALTTARGET
Default altitude-target parameter name.
|
private static String |
DEFAZTARGET
Default azimuth-target parameter name.
|
private static double |
DEFWEIGHT
Default value for the priority impact.
|
static String |
KEY_ALTBEARING
The key linked to the altitude bearing requested.
|
static String |
KEY_ALTTARGET
The name of the
AltTarget parameter. |
static String |
KEY_AZBEARING
The key linked to the azimuth bearing requested.
|
static String |
KEY_AZTARGET
The name of the
AzTarget parameter. |
static String |
KEY_BEARINGPARAMETER
The key linked to the bearing parameter.
|
static String |
KEY_WEIGHT
The key linked to the impact of the slew-tima merit.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
BearingMerit(Map<String,String> prop)
Constructs a new airmass merit, defaulting all parameters if not
explicetly given.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection ignore,
long dummy)
Calculates the actual gain using the requested bearing and calculating
the on-sky distance of this object to the bearing.
|
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_BEARINGPARAMETER
public static final String KEY_AZBEARING
public static final String KEY_ALTBEARING
public static final String KEY_WEIGHT
public static final String KEY_ALTTARGET
AltTarget parameter.public static final String KEY_AZTARGET
AzTarget parameter.private static final double DEFWEIGHT
private static final String DEFALTTARGET
private static final String DEFAZTARGET
public BearingMerit(Map<String,String> prop)
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 dummy)
set - Current observing conditions.target - The actual target.ignore - All targets, observable or not.dummy - The relevant time span in ms.