public class JdModulusMerit extends AbstractMerit
KEY_MODULUS yields KEY_REMAINDER,
zero otherwise. It can be used during observations like photometric
calibrations, where a number of fields should be observed nightly during
a given period. If one has three fields that should be observed during a
+/- 7 days from new moon, add this merit to each of the fields, setting
modulus to three and the remainder to 0, 1, 2, respectively.
The default implementation returns one always.
| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFJD
Default time parameter name.
|
private static int |
DEFMODULUS
Default value for the rise time, twelve hours.
|
private static int |
DEFREMAINDER
Default value for the sharpness.
|
static String |
KEY_JD
The key pointing to the name of the time parameter.
|
static String |
KEY_MODULUS
The key linked to the time merit rises from zero to peak.
|
static String |
KEY_REMAINDER
The sharpness of the rise, i.e.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
JdModulusMerit(Map<String,String> prop)
Constructs a at-time merit starting at the current time and with a
default risetime (
#DEFRISE) and sharpness (#DEFSHARP . |
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection ignore,
long spms)
Calculates the actual time slot merit.
|
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_MODULUS
public static final String KEY_REMAINDER
public static final String KEY_JD
private static final int DEFMODULUS
private static final int DEFREMAINDER
private static final String DEFJD
public JdModulusMerit(Map<String,String> prop)
#DEFRISE) and sharpness (#DEFSHARP .
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 ignore, long spms)
set - Current observing conditions.target - The actual target.ignore - All targets, observable or not.spms - The relevant time span in ms.