public class DarkSkyMerit extends SunAvoidanceMerit
AirmassMerit and a
SunAvoidanceMerit such, that it acts like the latter if the sun is
higher than KEY_DARKLIMIT above the horizon, and as the former in
the opposite case.| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFAIRMASS
Default airmass parameter name.
|
private static double |
DEFDARKLIMIT
Default value for the priority impact.
|
private static String |
DEFSOLHEIGHT
Default airmass parameter name.
|
static String |
KEY_AIRMASS
The key pointing to the name of the airmass parameter.
|
static String |
KEY_DARKLIMIT
The key pointing to the darkness limit.
|
static String |
KEY_SOLHEIGHT
The key pointing to the name of the solheight parameter.
|
KEY_SOLDEC, KEY_SOLRAKEY_DECTARGET, KEY_IMPACT, KEY_RATARGET, KEY_STEEPNESSKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
DarkSkyMerit(Map prop)
Constructs a new airmass merit, defaulting the
AvoidanceMerit.KEY_IMPACT and
the AvoidanceMerit.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.
|
getAvoidancePositioncreateMerit, 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_DARKLIMIT
public static final String KEY_AIRMASS
public static final String KEY_SOLHEIGHT
private static final double DEFDARKLIMIT
private static final String DEFAIRMASS
private static final String DEFSOLHEIGHT
public DarkSkyMerit(Map prop)
AvoidanceMerit.KEY_IMPACT and
the AvoidanceMerit.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)
AvoidanceMerit.KEY_STEEPNESS parameter.getMerit in interface MeritinggetMerit in class AvoidanceMeritset - Current observing conditions.target - The actual target.ignore - All targets, observable or not.span - The relevant time span in ms.