public class ChunkTimeMerit extends AbstractMerit implements EndpointDefining
| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFFRACTION
Default fraction rise.
|
private static String |
DEFJD
The default name of the time parameter.
|
private List<Double> |
jd0
The list of start JDs of the blocks, ordered for jd.
|
static String |
KEY_FRACTION
If no rise given, we take a fraction of the length.
|
static String |
KEY_JD
The name of the jd parameter.
|
static String |
KEY_JD0
The key linked to the list of starting jds.
|
static String |
KEY_LENGTH
A single length in day or a comma-separated list of equal size as jd0
|
static String |
KEY_RISE
Rise time of the merit in days.
|
private List<Double> |
length
The list of length of the blocks.
|
static double |
MINRISE
For the definition of the rise period.
|
private List<Double> |
sigma
The calculated sigma parameters of each block.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
ChunkTimeMerit(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.
|
private static double |
getMeritInBlock(double jd,
double jd0,
double duration,
double sigma) |
boolean |
isCompleted(GlobalGrouping set,
Appointable aim)
Test, if the last block is over by more than the rise time.
|
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 double MINRISE
public static final String KEY_JD0
public static final String KEY_LENGTH
public static final String KEY_RISE
public static final String KEY_FRACTION
public static final String KEY_JD
private static final String DEFJD
private static final double DEFFRACTION
public double getMerit(GlobalGrouping needtime, Appointable aim, Collection oftargets, long within)
private static double getMeritInBlock(double jd,
double jd0,
double duration,
double sigma)
public boolean isCompleted(GlobalGrouping set, Appointable aim)
isCompleted in interface EndpointDefining