public class SuccessorCloseMerit extends AfterPickMerit
KEY_SUCCEED has been successfully observed for at
least KEY_SUCCESSCOUNT times within a time span of
KEY_SUCCESSTIME. The zero-time returned is the pick-time
of the KEY_SUCCEED's KEY_SUCCESSCOUNT successful
observation. If the KEY_REQUIREPICKONLY property is set, also
non-successful observations are counted.| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFFLAVOR
The default flavor is zero.
|
private static boolean |
DEFREQUIREPICKONLY
If true, also non-successful picks are counted.
|
private static int |
DEFSUCCESSCOUNT
The default successful observations required for the precursor.
|
private static long |
DEFSUCCESSTIME
The default successful observations time span .
|
private static String |
DEFTIME
Default time parameter name.
|
static String |
KEY_REQUIREPICKONLY
If true, also non-successful picks are counted.
|
static String |
KEY_SUCCEED
The target that must be observed for this one to activate.
|
static String |
KEY_SUCCESSCOUNT
The number of observations required for
KEY_SUCCEED. |
static String |
KEY_SUCCESSTIME
The time within successful observations of
KEY_SUCCEED. |
static String |
KEY_TIME
The key pointing to the name of the time parameter.
|
KEY_FLAVOR, KEY_MAXIMUM, KEY_MAXIMUMDAY, KEY_SCALE, KEY_ZERO, KEY_ZERODAYKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
SuccessorCloseMerit(Map<String,String> prop)
Constructs a new successor merit.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
checkForStartTime(Appointable ignore,
Collection<Appointable> others,
GlobalGrouping set)
Checks if we can deduce a start-time from the targets handed over.
|
getMerit, isCompletedcreateMerit, 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_SUCCEED
public static final String KEY_SUCCESSCOUNT
KEY_SUCCEED.public static final String KEY_SUCCESSTIME
KEY_SUCCEED.public static final String KEY_TIME
public static final String KEY_REQUIREPICKONLY
private static final double DEFFLAVOR
private static final int DEFSUCCESSCOUNT
private static final long DEFSUCCESSTIME
private static final String DEFTIME
private static final boolean DEFREQUIREPICKONLY
public SuccessorCloseMerit(Map<String,String> prop)
KEY_SUCCEED.protected double checkForStartTime(Appointable ignore, Collection<Appointable> others, GlobalGrouping set)
KEY_SUCCEED and checks if it has
enough successful observations in it within the time span given by
KEY_SUCCESSTIME. Only then, the pick time of
the KEY_SUCCESSCOUNT observation is returned, zero
otherwise. The current time is from the parameters handed over.checkForStartTime in class AfterPickMerit