|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractTargetParameter
stella.parameter.AbstractTargetValue
stella.parameter.SolOpposition
public class SolOpposition
A Value calculating the time out of a given solar ra. This is
useful for calculating best observing periods. Its main use is for time
of opposition.
| Nested Class Summary | |
|---|---|
static class |
SolOpposition.Test
Testing only. |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static double |
ASUN
The constant coefficient. |
private static double |
BSUN
The linear coefficient. |
private static double |
CSUN
The quadratic coefficient. |
private static double |
DEFACCURACY
The default name of the sidereal parameter to use. |
private static String |
DEFECLIPTIC
The default name of the sidereal parameter to use. |
static String |
DEFNAME
The default name of this value. |
private static String |
DEFRATARGET
The default name of the sidereal parameter to use. |
private static SimpleDateFormat |
df
The decimal formatter for the hour angle. |
private Value |
epsilon
The obliqutiy of the ecliptic, degrees. |
static String |
KEY_ACCURACY
The name of the target longitude to use. |
static String |
KEY_ECLIPTIC
The name of the target longitude to use. |
static String |
KEY_RATARGET
The name of the target longitude to use. |
private static double |
LAM
Constant for excentricity offset. |
private static double |
NYA
Constant coefficient for calculating mean anamoly. |
private static double |
NYB
Linear coefficient for calculating mean anamoly. |
private static double |
NYC
Quadratic coefficient for calculating mean anamoly. |
private TargetDependingParameter |
ra
The right ascension of the target, degrees. |
| Fields inherited from class stella.parameter.AbstractTargetParameter |
|---|
KEY_INDEX |
| Fields inherited from class stella.parameter.AbstractParameter |
|---|
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
SolOpposition(Map info)
Constructs a new sol opposition object. |
|
| Method Summary | |
|---|---|
private Long |
calculate(Number ratarget)
Calculates the required solar longitude for opposition and calls the static longitudeInvert(double, double) method. |
String |
getFormatted()
Returns the formatted longitude value. |
String |
getFormattedFor(TargetDefinition target)
Returns the formatted longitude value. |
Number |
getForTarget(TargetDefinition star)
Gets the opposition date for a target. |
Number |
getValue()
Returns the date when this target will be in opposition to the sun. |
static long |
longitudeInvert(double lamsol,
double acc)
Calculates the date when the sun had the defined solar longitude in the year 2000. |
void |
registerParameter(Parameter what)
Registers the required additional globals for the solar opposition. |
void |
registerTarget(TargetDefinition star)
Registers a star to this parameter. |
double |
rescanned(String key,
String old,
String newval)
As any parameter depending instance we fail if the parameter we depend on is now a different one. |
Number |
setValue(Number val)
Sets the solar opposition date of the actual target. |
| Methods inherited from class stella.parameter.AbstractTargetValue |
|---|
get, set |
| Methods inherited from class stella.parameter.AbstractTargetParameter |
|---|
getAsStar, getConstant, getSetup |
| Methods inherited from class stella.parameter.AbstractParameter |
|---|
createParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, init, register, setName, toString |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, 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, isNew, parseObject, reload, removeProperty, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.Reloadable |
|---|
reload |
| Methods inherited from interface stella.Parameter |
|---|
getName, getString |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Methods inherited from interface util.Initializable |
|---|
init |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Field Detail |
|---|
public static final String KEY_RATARGET
public static final String KEY_ECLIPTIC
public static final String KEY_ACCURACY
public static final String DEFNAME
private static final String DEFRATARGET
private static final String DEFECLIPTIC
private static final double DEFACCURACY
private static final double ASUN
private static final double BSUN
private static final double CSUN
private static final double LAM
private static final double NYA
private static final double NYB
private static final double NYC
private TargetDependingParameter ra
private Value epsilon
private static final SimpleDateFormat df
| Constructor Detail |
|---|
public SolOpposition(Map info)
| Method Detail |
|---|
public Number setValue(Number val)
throws UnsupportedOperationException
setValue in interface ValueUnsupportedOperationExceptionpublic void registerTarget(TargetDefinition star)
ra reference of this parameter.
Note that this
will set the target in the additional parameter, too.
registerTarget in interface TargetDependingpublic Number getForTarget(TargetDefinition star)
getForTarget in interface TargetDependingValuegetForTarget in interface TargetDependingParameterpublic Number getValue()
getValue in interface Value
public double rescanned(String key,
String old,
String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic void registerParameter(Parameter what)
registerParameter in interface ParameterDependingprivate Long calculate(Number ratarget)
longitudeInvert(double, double) method.
public static long longitudeInvert(double lamsol,
double acc)
Astro to query.
lamsol - The solar ecliptical longitude in radians.acc - The accuracy of the newton solver.
public String getFormatted()
getFormatted in interface ParametergetFormatted in class AbstractParameterpublic String getFormattedFor(TargetDefinition target)
getFormattedFor in interface TargetDependingParametergetFormattedFor in class AbstractTargetParameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||