public class AirmassMerit extends AbstractMerit
#KEY_IMPACT factor and a KEY_STEEPNESS. The exact formular
is:
gain(t) = w/(1+z-zmin)s
Here, 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.ZenithMerit,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFAIRMASS
Default airmass parameter name.
|
private static String |
DEFDECLINATION
Default airmass parameter name.
|
private static String |
DEFLATITUDE
Default airmass parameter name.
|
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_DECLINATION
The key pointing to the name of the airmass parameter.
|
static String |
KEY_LATITUDE
The key pointing to the name of the airmass parameter.
|
static String |
KEY_STEEPNESS
The key linked to the steepness of the airmass merit.
|
private static long |
serialVersionUID |
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
AirmassMerit(Map<String,String> 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<Appointable> 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, toStringprivate static final long serialVersionUID
public static final String KEY_STEEPNESS
public static final String KEY_AIRMASS
public static final String KEY_DECLINATION
public static final String KEY_LATITUDE
private static final double DEFSTEEPNESS
private static final String DEFAIRMASS
private static final String DEFDECLINATION
private static final String DEFLATITUDE
public AirmassMerit(Map<String,String> 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<Appointable> 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.