public class DawnMerit extends ForcedTimeoutMerit
KEY_DAWN.| Modifier and Type | Field and Description |
|---|---|
static double |
DEFDAWN
Default dawn, when we get active.
|
private static String |
DEFSOLHEIGHT
Default solar height parameter name.
|
static String |
KEY_DAWN
The key linked to the solar height at dawn.
|
static String |
KEY_SOLHEIGHT
The name of the solar height value.
|
KEY_OBSERVE, KEY_SPAN, KEY_TIME, KEY_TIMEOUTKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
DawnMerit(Map prop)
Constructs a dawn merit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection ignore,
long within)
Calculates the actual time slot merit.
|
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_SOLHEIGHT
public static final String KEY_DAWN
private static final String DEFSOLHEIGHT
public static final double DEFDAWN
public DawnMerit(Map prop)
KEY_DAWN
parameter. 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 within)
KEY_DAWN, then the full merit is returned, otherwise we
behave like a forced time out merit.getMerit in interface MeritinggetMerit in class ForcedTimeoutMeritset - Current observing conditions.target - The actual target.ignore - All targets, observable or not.within - The relevant time span in ms.