stella.parameter
Class RaActual

java.lang.Object
  extended by util.PropertyContainer
      extended by stella.parameter.AbstractParameter
          extended by stella.parameter.AbstractTargetParameter
              extended by stella.parameter.AbstractTargetValue
                  extended by stella.parameter.RaTarget
                      extended by stella.parameter.RaActual
All Implemented Interfaces:
Cloneable, Parameter, Settable, TargetDependingValue, ParameterDepending, TargetDepending, TargetDependingParameter, Value, ExitCleaning, Initializable, PropertyBearing, Reloadable

public class RaActual
extends RaTarget
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.PropertyContainer
PropertyContainer.URLResource
 
Field Summary
private  DecTarget de
          The dec of the actual object as a Double.
private static String DEFDEC
          The name of the declination of the target to use.
private static String DEFJD
          The name of the julian date to use.
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  Value jd
          The julian date.
static String KEY_DEC
          The name of the declination of the target to use.
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.
private  PropDecTarget pmde
          The proper motion in de, arcsec/yr.
private  PropRaTarget pmra
          The proper motion in ra, arcsec/yr.
 
Fields inherited from class stella.parameter.RaTarget
DEFNAME, 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.PropertyContainer
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES
 
Fields inherited from interface util.PropertyBearing
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
RaActual(Map prop)
          Constructs a new global representing the actual object's ra.
 
Method Summary
 double getEpoch()
          Returns the current epoch in julian yeras.
 Number getForTarget(TargetDefinition star)
          Gets the right ascension 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.RaTarget
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.PropertyContainer
clone, createFrom, createFrom, createFrom, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getLocalClassLoader, getLocalized, getLocalized, getLocalizedString, getLocalizedString, getProperties, getPropertiesToKey, getPropertiesToKey, getProperty, getResource, getResourceAsStream, getResourceFromKey, getResources, has, isNew, keyCreate, keyCreate, parseObject, reload, 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.PropertyBearing
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsObject, getAsObject, getLocalized, getProperties, getProperty, getResource, getResourceAsStream, getResources, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.Initializable
init
 

Field Detail

KEY_JD

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

See Also:
Constant Field Values

KEY_DEC

public static final String KEY_DEC
The name of the declination 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

DEFJD

private static final String DEFJD
The name of the julian date 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

DEFDEC

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

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.


de

private DecTarget de
The dec of the actual object as a Double.

Constructor Detail

RaActual

public RaActual(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 RaTarget

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 RaTarget

getForTarget

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

Specified by:
getForTarget in interface TargetDependingValue
Specified by:
getForTarget in interface TargetDependingParameter
Overrides:
getForTarget in class RaTarget
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 RaTarget

getUnprecessed

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


getUnprecessed

protected Number getUnprecessed()
Returns the catalog value.


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 in julian yeras.

Overrides:
getEpoch in class RaTarget

precess

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