public class RandomMerit extends AbstractMerit
KEY_IMPACT. Used
to ad a random element to scheduling to avoid a too strongly pronounced
window function.| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFIMPACT
Default value for the priority impact.
|
static String |
KEY_IMPACT
The key linked to the impact of the airmass merit.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
RandomMerit(Map<String,String> prop)
Constructs a new random merit, defaulting the
KEY_IMPACT. |
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection<Appointable> ignore,
long dummy)
Calculates the actual gain using a random value between zero and
KEY_IMPACT. |
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
private static final double DEFIMPACT
public RandomMerit(Map<String,String> prop)
KEY_IMPACT.
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_IMPACT.set - Current observing conditions.target - The actual target.ignore - All targets, observable or not.dummy - The relevant time span in ms.