public class JdMerit extends AbstractMerit implements EndpointDefining
| Modifier and Type | Field and Description |
|---|---|
private static int |
DEFDURATION
Default value for the sharpness.
|
private static String |
DEFJD
Default time parameter name.
|
static String |
KEY_DURATION
The duration in days..
|
static String |
KEY_JD
The key pointing to the name of the time parameter.
|
static String |
KEY_JDSTART
The duration in days..
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
JdMerit(Map<String,String> prop)
Constructs a at-time merit starting at the current time and with a
default risetime (
#DEFRISE) and sharpness (#DEFSHARP . |
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection<Appointable> ignore,
long span)
Calculates the actual time slot merit.
|
boolean |
isCompleted(GlobalGrouping set,
Appointable target)
Returns true, if the observing program on the target is finished.
|
private double |
jdNow(GlobalGrouping set) |
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_JDSTART
public static final String KEY_DURATION
public static final String KEY_JD
private static final int DEFDURATION
private static final String DEFJD
public JdMerit(Map<String,String> prop)
#DEFRISE) and sharpness (#DEFSHARP .
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)
private double jdNow(GlobalGrouping set)
set - public boolean isCompleted(GlobalGrouping set, Appointable target)
EndpointDefiningisCompleted in interface EndpointDefining