|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
stella.AbstractMerit
stella.xml.AbstractPhaseMerit
public abstract class AbstractPhaseMerit
An abstract class that calculates the current phase of an object. This can
be acheived either by setting the KEY_ZEROPHASE to the HJD of
phase zero, otherwise the first successful observation will be used to
define the zero phase.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
private static String |
DEFHJDCORRECTION
Default hjd correction parameter name. |
private static String |
DEFJD
Default jd parameter name. |
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_ZEROPHASE
The jd defining zero phase. |
private static long |
serialVersionUID
|
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
protected |
AbstractPhaseMerit(Map<String,String> prop)
Constructs a phase-coherent merit. |
| Method Summary | |
|---|---|
protected double |
getDaysSinceT0(TargetDefinition target,
ParameterClustering 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. |
protected double |
getPhase(TargetDefinition target,
long time)
Returns the phase at the stated date. |
protected double |
getPhase(TargetDefinition target,
ParameterClustering set)
Returns the current phase. |
protected double |
getT0(TargetDefinition target)
Calculates the phase zero in JD. |
void |
init()
We have to have a period now. |
| Methods inherited from class stella.AbstractMerit |
|---|
createMerit, getInitializer, initMerit |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stella.Meriting |
|---|
getMerit |
| Field Detail |
|---|
private 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_HJDCORRECTION
private static final String DEFJD
private static final String DEFHJDCORRECTION
| Constructor Detail |
|---|
protected AbstractPhaseMerit(Map<String,String> prop)
AbstractMerit.createMerit(java.util.Map)
method. This create method also takes care of proper parameter
overloading.
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class PropertyContainerprotected double getT0(TargetDefinition target)
protected double getDaysSinceT0(TargetDefinition target,
ParameterClustering set)
protected double getHjd(Date when,
TargetDefinition target)
protected double getHjd(long ms,
TargetDefinition target)
protected double getPhase(TargetDefinition target,
long time)
protected double getPhase(TargetDefinition target,
ParameterClustering set)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||