public class AfterTimeMerit extends AbstractMerit implements EndpointDefining
EndpointDefining). This behaviour implies that k is
non-negative, m is arbitrary, z is non-negative and z>2m. The
polynom used is
merit(t)=k[(t-t0)²/z(2m-z)+2m(t-t0)/z(z-2m)+1]
The definition of t0 and the flavor of the merit is different in its three
non-abstract subclasses SuccessorMerit, ConsecutiveMerit, and
FollowingProgramMerit. To allow a time-independant merit, set zero to
a high value. In particular, setting zero to a value less equal zero renders
z to be positive infinitive.| Modifier and Type | Field and Description |
|---|---|
private double |
apoly
To easy evaluation, calculate polynom at construct.
|
private double |
bpoly
To easy evaluation, calculate polynom at construct.
|
private double |
cpoly
To easy evaluation, calculate polynom at construct.
|
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_UNITY
The rise-time to the maximum, same unit as the jd.
|
static String |
KEY_ZERO
The time down to zero.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
AfterTimeMerit(Map<String,String> prop)
Constructs a new after-start merit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping needtime,
Appointable aim,
Collection<Appointable> 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_UNITY
public static final String KEY_ZERO
public static final String KEY_JD
private static final String DEFJD
private final double apoly
private final double bpoly
private final double cpoly
public double getMerit(GlobalGrouping needtime, Appointable aim, Collection<Appointable> oftargets, long within)
public boolean isCompleted(GlobalGrouping set, Appointable aim)
isCompleted in interface EndpointDefining