public class PhaseAvoidanceMerit extends AbstractPhaseMerit implements EndpointDefining, Initializable
| Modifier and Type | Class and Description |
|---|---|
static class |
PhaseAvoidanceMerit.Xml
Creats an XML-segment out of the command line arguments, which are
jd0 (t0), period in days and as a single string the phases to
avoid.
|
| Modifier and Type | Field and Description |
|---|---|
private List<Vector2D> |
avoid
The list of phases we want to avoid, x is start phase, y end phase.
|
private static double |
DEFPHASESHIFT
Default maximum phase shift.
|
private static double |
DEFUNCERTAINTY
Default uncertainty.
|
static String |
KEY_AVOID
The key linked to the pair list of phases to avoid.
|
static String |
KEY_PHASESHIFT
If the uncertainty shifts the phase more than this, we stop.
|
static String |
KEY_UNCERTAINTY
If set, the uncertainty in the period as a fraction of the period.
|
private static long |
serialVersionUID |
KEY_HJDCORRECTION, KEY_JD, KEY_PERIODDAY, KEY_USEHJD, KEY_ZEROPHASEKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
PhaseAvoidanceMerit(Map<String,String> prop)
Constructs a phase-coherent merit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection ignore,
long within)
Calculates the actual time slot merit.
|
void |
init()
Constructs the phases to avoid from the
KEY_AVOID property
that must point to a double-list of numbers, where the inner list
consists of number pair separated by ',', and the outer list, with
an arbitrary length, separated by ';'. |
boolean |
isCompleted(GlobalGrouping set,
Appointable target)
Check, if the observation is complete.
|
getDaysSinceT0, getHjd, getHjd, getPeriodsSinceT0, getPhase, getPhase, getT0createMerit, 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_UNCERTAINTY
public static final String KEY_PHASESHIFT
public static final String KEY_AVOID
private static final double DEFUNCERTAINTY
private static final double DEFPHASESHIFT
public PhaseAvoidanceMerit(Map<String,String> prop)
AbstractMerit.createMerit(java.util.Map<java.lang.String, java.lang.String>) method.
This create method also takes care of proper parameter
overloading.public void init()
KEY_AVOID property
that must point to a double-list of numbers, where the inner list
consists of number pair separated by ',', and the outer list, with
an arbitrary length, separated by ';'.init in interface Initializableinit in class AbstractPhaseMeritpublic double getMerit(GlobalGrouping set, Appointable target, Collection ignore, long within)
public boolean isCompleted(GlobalGrouping set, Appointable target)
isCompleted in interface EndpointDefining