public class OneObservationMerit extends AbstractMerit implements EndpointDefining
KEY_MAXOBSERVATIONS.| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFIMPACT
Default value for the priority impact.
|
private static int |
DEFMAXOBSERVATIONS
Default value for the maximum number of observations.
|
static String |
KEY_IMPACT
The key linked to the impact of the airmass merit.
|
static String |
KEY_MAXOBSERVATIONS
The key linked to the maximum number of successful observations.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
OneObservationMerit(Map<String,String> prop)
Constructs a one-observation merit, defaulting the
KEY_IMPACT
and the KEY_MAXOBSERVATIONS parameters. |
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection<Appointable> ignore,
long dummy)
Calculates the actual time slot merit.
|
boolean |
isCompleted(GlobalGrouping set,
Appointable target)
Returns true, if the number of successful observations has reached the
requested value.
|
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_IMPACT
public static final String KEY_MAXOBSERVATIONS
private static final double DEFIMPACT
private static final int DEFMAXOBSERVATIONS
public OneObservationMerit(Map<String,String> prop)
KEY_IMPACT
and the KEY_MAXOBSERVATIONS parameters. 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 dummy)
KEY_MAXOBSERVATIONS, the
KEY_IMPACT merit is returned. If the target definition is not
history aware, one is returned. public boolean isCompleted(GlobalGrouping set, Appointable target)
isCompleted in interface EndpointDefining