public class TransitOnOffMerit extends TransitMerit implements EndpointDefining
TransitMerit except that it allows
for a single 'off' observation within one period of an succsessful tranist
observation.| Modifier and Type | Field and Description |
|---|---|
private static boolean |
DEFALWAYSOFF
Default only if transit possible.
|
private static boolean |
DEFALWAYSON
Default only if transit possible.
|
private static double |
DEFOUT
Default out-gress time.
|
static String |
KEY_ALWAYSOFF
Second observation allowed this time after fourth contact.
|
static String |
KEY_ALWAYSON
Second observation allowed this time after fourth contact.
|
static String |
KEY_EGRESS
Second observation allowed this time after fourth contact.
|
private static long |
serialVersionUID |
KEY_INGRESS, KEY_OVER, KEY_TRANSITDURATION, KEY_TRANSITS, KEY_UNCERTAINTYKEY_HJDCORRECTION, KEY_JD, KEY_PERIODDAY, KEY_USEHJD, KEY_ZEROPHASEKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
TransitOnOffMerit(Map<String,String> prop)
Constructs a phase-coherent merit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection<Appointable> ignore,
long within)
Calculates the actual time slot merit.
|
void |
init()
Generates the list of phases we want to observe.
|
boolean |
isCompleted(GlobalGrouping set,
Appointable target)
Check, if the observation is complete.
|
forPhasegetDaysSinceT0, 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_EGRESS
public static final String KEY_ALWAYSOFF
public static final String KEY_ALWAYSON
private static final double DEFOUT
private static final boolean DEFALWAYSOFF
private static final boolean DEFALWAYSON
public TransitOnOffMerit(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()
init in interface Initializableinit in class TransitMeritpublic double getMerit(GlobalGrouping set, Appointable target, Collection<Appointable> ignore, long within)
getMerit in interface MeritinggetMerit in class TransitMeritset - Current observing conditions.target - The actual target.ignore - All targets, observable or not.within - The relevant time span in ms.public boolean isCompleted(GlobalGrouping set, Appointable target)
isCompleted in interface EndpointDefiningisCompleted in class TransitMerit