public class RandomizeGroupMerit extends AbstractNightMerit implements Initializable
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
DEFALLPICKS
Default use only successful picks.
|
private static long |
DEFGRACETIME
No grace time.
|
static String |
KEY_ALLPICKS
If true, use all picks, otherwise only successful.
|
static String |
KEY_EXCLUDEGROUP
If set, remove from randomize list.
|
static String |
KEY_GRACETIME
A grace time to add to the night length.
|
static String |
KEY_INCLUDEGROUP
If set, only randomize these targets.
|
private double |
lastrandom |
private static long |
serialVersionUID |
KEY_NIGHTLENGTH, KEY_NIGHTREMAIN, KEY_PERNIGHTKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
RandomizeGroupMerit(Map<String,String> init) |
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection<Appointable> allothers,
long within)
Calculates the maximal merit for a special target within the stated
amount of time.
|
private int |
getRank(HistoryAware target,
GlobalGrouping set)
Returns the number of relevant picks in this night.
|
void |
init() |
countObservationscreateMerit, 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_INCLUDEGROUP
public static final String KEY_EXCLUDEGROUP
public static final String KEY_ALLPICKS
public static final String KEY_GRACETIME
private static final boolean DEFALLPICKS
private static final long DEFGRACETIME
private double lastrandom
public void init()
init in interface Initializablepublic double getMerit(GlobalGrouping set, Appointable target, Collection<Appointable> allothers, long within)
Meritingprivate int getRank(HistoryAware target, GlobalGrouping set)
target - set -