stella.parameter
Class DecApparent

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.parameter.AbstractParameter
                  extended by stella.parameter.AbstractTargetParameter
                      extended by stella.parameter.AbstractTargetValue
                          extended by stella.parameter.DecTarget
                              extended by stella.parameter.DecApparent
All Implemented Interfaces:
Cloneable, Parameter, Settable, TargetDependingValue, ParameterDepending, TargetDepending, TargetDependingParameter, Value, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, Reloadable, ResourceSupplying

public class DecApparent
extends DecTarget
implements ParameterDepending

A general variable representing the ra of the actual object, precessed to the current equinox. Extends the RaTarget base class. Needs the current jd and dec in 2000 equinox. Parameters.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static String DEFJD
          The name of the julian date to use.
static String DEFNAME
          The name of this global (ra).
private static String DEFPROPDEC
          The name of the proper motion in de.
private static String DEFPROPRA
          The name of the proper motion in ra.
private static String DEFRA
          The name of the declination of the target to use.
private  Value jd
          The julian date.
static String KEY_JD
          The name of the julian date parameter.
static String KEY_PROPDEC
          The name of the proper motion in ra of the target to use.
static String KEY_PROPRA
          The name of the proper motion in ra of the target to use.
static String KEY_RA
          The name of the right ascension of the target to use.
private  PropDecTarget pmde
          The proper motion in de, arcsec/yr.
private  PropRaTarget pmra
          The proper motion in ra, arcsec/yr.
private  RaTarget ra
          The ra of the actual object as a Double.
 
Fields inherited from class stella.parameter.DecTarget
KEY_EPOCH
 
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
DecApparent(Map prop)
          Constructs a new global representing the actual object's ra.
 
Method Summary
 double getEpoch()
          Returns the current epoch.
 Number getForTarget(TargetDefinition star)
          Gets the declination of the target star, precessed to current equinox.
protected  Number getUnprecessed()
          Returns the catalog value.
protected  Number getUnprecessed(TargetDefinition star)
          Returns the catalog value.
 Number getValue()
          Returns the ra of the actual target.
private  Number precess(double alpha, double delta, double jul)
          Precesses the right ascension to the jd given in the third parameter.
 void registerParameter(Parameter what)
          Registers the required additional globals for the ra actual.
 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.
 
Methods inherited from class stella.parameter.DecTarget
set, setValue
 
Methods inherited from class stella.parameter.AbstractTargetValue
get
 
Methods inherited from class stella.parameter.AbstractTargetParameter
getAsStar, getConstant, getFormattedFor, getSetup
 
Methods inherited from class stella.parameter.AbstractParameter
createParameter, delivers, exit, getFormatted, 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.TargetDependingParameter
getFormattedFor
 
Methods inherited from interface stella.Parameter
getFormatted, 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

KEY_JD

public static final String KEY_JD
The name of the julian date parameter.

See Also:
Constant Field Values

KEY_RA

public static final String KEY_RA
The name of the right ascension of the target to use.

See Also:
Constant Field Values

KEY_PROPRA

public static final String KEY_PROPRA
The name of the proper motion in ra of the target to use.

See Also:
Constant Field Values

KEY_PROPDEC

public static final String KEY_PROPDEC
The name of the proper motion in ra of the target to use.

See Also:
Constant Field Values

DEFNAME

public static final String DEFNAME
The name of this global (ra).

See Also:
Constant Field Values

DEFJD

private static final String DEFJD
The name of the julian date to use.

See Also:
Constant Field Values

DEFRA

private static final String DEFRA
The name of the declination of the target to use.

See Also:
Constant Field Values

DEFPROPRA

private static final String DEFPROPRA
The name of the proper motion in ra.

See Also:
Constant Field Values

DEFPROPDEC

private static final String DEFPROPDEC
The name of the proper motion in de.

See Also:
Constant Field Values

jd

private Value jd
The julian date.


pmra

private PropRaTarget pmra
The proper motion in ra, arcsec/yr.


pmde

private PropDecTarget pmde
The proper motion in de, arcsec/yr.


ra

private RaTarget ra
The ra of the actual object as a Double.

Constructor Detail

DecApparent

public DecApparent(Map prop)
Constructs a new global representing the actual object's ra.

Method Detail

rescanned

public 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.

Specified by:
rescanned in interface Reloadable
Overrides:
rescanned in class DecTarget

registerTarget

public void registerTarget(TargetDefinition star)
Registers a star to this parameter. The declination of the star is set as this parameter's value.

Specified by:
registerTarget in interface TargetDepending
Overrides:
registerTarget in class DecTarget

getForTarget

public Number getForTarget(TargetDefinition star)
Gets the declination of the target star, precessed to current equinox.

Specified by:
getForTarget in interface TargetDependingValue
Specified by:
getForTarget in interface TargetDependingParameter
Overrides:
getForTarget in class DecTarget
Returns:
A Double holding the target star's right ascension.

getValue

public Number getValue()
Returns the ra of the actual target. Returns null if the ra has not been set previously.

Specified by:
getValue in interface Value
Overrides:
getValue in class DecTarget

registerParameter

public void registerParameter(Parameter what)
Registers the required additional globals for the ra actual. For this particular object, the julian date and the declination of the target is needed.

Specified by:
registerParameter in interface ParameterDepending

getEpoch

public double getEpoch()
Returns the current epoch.

Overrides:
getEpoch in class DecTarget

getUnprecessed

protected Number getUnprecessed(TargetDefinition star)
Returns the catalog value.


getUnprecessed

protected Number getUnprecessed()
Returns the catalog value.


precess

private Number precess(double alpha,
                       double delta,
                       double jul)
Precesses the right ascension to the jd given in the third parameter.