public class RaApparent extends AbstractTargetValue implements Reloadable, ParameterDepending
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
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.
|
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_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.
|
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.
|
KEY_INDEXKEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
RaApparent(Map<String,String> prop)
Constructs a new global representing the actual object's ra.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Number |
setValue(Number val)
Sets the apparent right ascension.
|
get, setgetAsStar, getConstant, getFormattedFor, getSetupcreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, init, overrideDefaultName, register, setName, toStringclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreloadgetFormattedForgetFormatted, getName, getStringdefaultBoolean, 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, stringPropertiesinitpublic static final String KEY_JD
public static final String KEY_RA
public static final String KEY_DEC
public static final String KEY_PROPRA
public static final String KEY_PROPDEC
public static final String DEFNAME
private static final String DEFJD
private static final String DEFPROPRA
private static final String DEFPROPDEC
private static final String DEFRA
private static final String DEFDEC
private Value jd
private PropRaTarget pmra
private PropDecTarget pmde
private RaTarget ra
private DecTarget de
public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic void registerTarget(TargetDefinition star)
registerTarget in interface TargetDependingpublic Number getForTarget(TargetDefinition star)
getForTarget in interface TargetDependingParametergetForTarget in interface TargetDependingValuepublic Number setValue(Number val) throws UnsupportedOperationException
setValue in interface ValueUnsupportedOperationExceptionpublic Number getValue()
protected Number getUnprecessed(TargetDefinition star)
protected Number getUnprecessed()
public void registerParameter(Parameter what)
registerParameter in interface ParameterDependingpublic double getEpoch()
private Number precess(double alpha, double delta, double jul)