public class PriorityJumpMerit extends AbstractMerit
#KEY_IMPACT
and #KEY_STRETCH that can be overriden in the xml-definition.
The user must provide a #KEY_PRIORITY that should be a simple
integer. Smaller numbers means higher priority.
The formula used for this merit is
merit(t) = k·ef·pHere, k is the
#KEY_IMPACT factor, while f is the
#KEY_STRETCH. The priority comes in with p. Note that this
merit is not time dependant. Its range is between zero and positive
infinity.
| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFSCALE
Default value for the priority stretch.
|
private static int |
DEFSUCCESSCOUNT
The default successful observations required for the precursor.
|
private static String |
DEFTIME
Default time parameter name.
|
private static double |
DEFZERO
Default value for the priority stretch.
|
static String |
KEY_SCALE
The key linked to the scaling factor k of the merit.
|
static String |
KEY_SUCCESSCOUNT
The number of observations required.
|
static String |
KEY_TIME
The name of the time parameter used.
|
static String |
KEY_ZERO
No more observations after this number of days after high trigger.
|
private static long |
serialVersionUID |
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
PriorityJumpMerit(Map<String,String> prop)
Constructs a new priority merit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable me,
Collection<Appointable> ignore,
long dummy)
Calculates the priority merit stemming from the target priority.
|
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, toStringprivate static final long serialVersionUID
public static final String KEY_TIME
public static final String KEY_SUCCESSCOUNT
public static final String KEY_SCALE
public static final String KEY_ZERO
private static final String DEFTIME
private static final int DEFSUCCESSCOUNT
private static final double DEFSCALE
private static final double DEFZERO
public PriorityJumpMerit(Map<String,String> prop)
AbstractMerit.createMerit(java.util.Map<java.lang.String, java.lang.String>) method. This create method
also takes care of proper argument
overloading, while normal construction always uses default values.#KEY_STRETCH and the
#KEY_IMPACT factors are set.public double getMerit(GlobalGrouping set, Appointable me, Collection<Appointable> ignore, long dummy)
AbstractMerit.createMerit(java.util.Map<java.lang.String, java.lang.String>) creation.set - Current observing conditions.me - The actual target.ignore - All targets, observable or not.dummy - The relevant time span in ms.