public class NightOptimalMerit extends AbstractMerit
| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFMERIDIAN
Default tau parameter name.
|
private static double |
DEFSAFETY
Default 20% safety.
|
private static String |
DEFSUNHEIGHT
Default sun height parameter name.
|
private static double |
DEFSUNRISE
Default value for the fwmh of the merit in hours.
|
static String |
KEY_MERIDIAN
The key pointing to the name of the tau parameter.
|
static String |
KEY_SAFETY
The key linked to a safety factor for voting yes.
|
static String |
KEY_SUNHEIGHT
The key pointing to the name of the tau parameter.
|
static String |
KEY_SUNRISE
The key linked to the steepness of the meridian merit.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
NightOptimalMerit(Map<String,String> prop)
Constructs a new night optimal merit, defaulting parameter names.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection<Appointable> ignore,
long span)
Calculates the actual gain using the
|
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_SUNRISE
public static final String KEY_SAFETY
public static final String KEY_MERIDIAN
public static final String KEY_SUNHEIGHT
private static final double DEFSUNRISE
private static final double DEFSAFETY
private static final String DEFMERIDIAN
private static final String DEFSUNHEIGHT
public double getMerit(GlobalGrouping set, Appointable target, Collection<Appointable> ignore, long span)
set - Current observing conditions.target - The actual target.ignore - All targets, observable or not.span - The relevant time span in ms.