public class BlockTimeMerit extends AbstractMerit implements EndpointDefining
| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFJD
The default name of the time parameter.
|
static String |
KEY_JD
The name of the jd parameter.
|
static String |
KEY_JD0
The key linked to the 'flavor' of the merit.
|
static String |
KEY_ZERO
The time down to zero.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
BlockTimeMerit(Map<String,String> prop)
Constructs a new after-start merit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping needtime,
Appointable aim,
Collection oftargets,
long within)
Calculates the merit.
|
boolean |
isCompleted(GlobalGrouping set,
Appointable aim)
Test, if the first successful observation has been done too long in the
past.
|
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_JD0
public static final String KEY_ZERO
public static final String KEY_JD
private static final String DEFJD
public double getMerit(GlobalGrouping needtime, Appointable aim, Collection oftargets, long within)
KEY_ZERO time in the past, zero is returned, otherwise one
is returned.public boolean isCompleted(GlobalGrouping set, Appointable aim)
isCompleted in interface EndpointDefining