public class RaTarget extends AbstractTargetValue implements Settable, Reloadable
AbstractValue
base class. Does not need any registereed additional
Parameters.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFEPOCH
The name of the julian date to use.
|
static String |
DEFNAME
The name of this global (ra).
|
private static DecimalFormat |
df
The formatter for the declination.
|
static String |
KEY_EPOCH
The epoch of the right ascension, julian centuries.
|
private Number |
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 |
|---|
RaTarget(Map<String,String> prop)
Constructs a new global representing the actual object's ra.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getEpoch()
Returns the epoch of the right ascension in julian centuries.
|
Number |
getForTarget(TargetDefinition star)
Gets the declination of the target star.
|
Number |
getValue()
Returns the ra of the actual target.
|
void |
registerTarget(TargetDefinition star)
Registers a star to this parameter.
|
double |
rescanned(String key,
String old,
String newval)
Makes this method public, no further changes.
|
Object |
set(Object str)
Allows setting via a string.
|
Number |
setValue(Number val)
Sets the ra of the actual object.
|
getgetAsStar, 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_EPOCH
private static final double DEFEPOCH
public static final String DEFNAME
private Number ra
private static final DecimalFormat df
public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic Object set(Object str)
set in interface Parameterset in class AbstractTargetValuepublic Number setValue(Number val)
setValue in interface Valueval - A Double representing the ra of the object, in degrees.IllegalArgumentException - If the argument is not a Double.public void registerTarget(TargetDefinition star)
registerTarget in interface TargetDependingpublic Number getForTarget(TargetDefinition star)
getForTarget in interface TargetDependingParametergetForTarget in interface TargetDependingValuepublic double getEpoch()