public abstract class AbstractPhaseMerit extends AbstractMerit
KEY_ZEROPHASE to the HJD of phase
zero, otherwise the first successful observation will be used to define the
zero phase.| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFHJDCORRECTION
Default hjd correction parameter name.
|
private static String |
DEFJD
Default jd parameter name.
|
private static boolean |
DEFUSEHJD
Default is HJD-cofrrected.
|
static String |
KEY_HJDCORRECTION
The key pointing to the name of the jd parameter.
|
static String |
KEY_JD
The key pointing to the name of the jd parameter.
|
static String |
KEY_PERIODDAY
The period of the observation, days.
|
static String |
KEY_USEHJD
If true, use HJD.
|
static String |
KEY_ZEROPHASE
The jd defining zero phase.
|
private static long |
serialVersionUID |
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPhaseMerit(Map<String,String> prop)
Constructs a phase-coherent merit.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getDaysSinceT0(TargetDefinition target,
GlobalGrouping set)
Calculates the days from phase zero.
|
protected double |
getHjd(Date when,
TargetDefinition target)
Returns the HJD of the stated ms time for this target.
|
protected double |
getHjd(long ms,
TargetDefinition target)
Returns the HJD of the stated ms time for this target.
|
private static double |
getHjd(long ms,
TargetDefinition target,
boolean usehjd)
Returns the HJD of the stated ms time for this target.
|
protected int |
getPeriodsSinceT0(TargetDefinition target,
GlobalGrouping set) |
protected double |
getPhase(TargetDefinition target,
GlobalGrouping set)
Returns the current phase.
|
protected double |
getPhase(TargetDefinition target,
long time)
Returns the phase at the stated date.
|
protected double |
getT0(TargetDefinition target)
Calculates the phase zero in JD.
|
void |
init()
We have to have a period now.
|
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, toStringprivate static final long serialVersionUID
public static final String KEY_PERIODDAY
public static final String KEY_ZEROPHASE
public static final String KEY_JD
public static final String KEY_USEHJD
public static final String KEY_HJDCORRECTION
private static final String DEFJD
private static final String DEFHJDCORRECTION
private static final boolean DEFUSEHJD
protected AbstractPhaseMerit(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()
protected double getT0(TargetDefinition target)
protected double getDaysSinceT0(TargetDefinition target, GlobalGrouping set)
protected int getPeriodsSinceT0(TargetDefinition target, GlobalGrouping set)
protected double getHjd(Date when, TargetDefinition target)
protected double getHjd(long ms,
TargetDefinition target)
private static double getHjd(long ms,
TargetDefinition target,
boolean usehjd)
protected double getPhase(TargetDefinition target, long time)
protected double getPhase(TargetDefinition target, GlobalGrouping set)