public abstract class LaserDistance extends AbstractTargetValue implements ParameterDepending, Reloadable
| Modifier and Type | Class and Description |
|---|---|
static class |
LaserDistance.Randomize |
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private TargetDependingValue |
de
The declination of the target.
|
private static String |
DEFDECTARGET
The default name of the ra-target parameter.
|
static String |
DEFNAME
The name of this global (ra).
|
private static String |
DEFRATARGET
The default name of the ra-target parameter.
|
static String |
KEY_DECTARGET
The name of the parameter that gives the dec of the target.
|
static String |
KEY_RATARGET
The name of the parameter that gives the ra of the target.
|
private TargetDependingValue |
ra
The hour angle of the target.
|
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 |
|---|
LaserDistance(Map<String,String> prop) |
| Modifier and Type | Method and Description |
|---|---|
abstract Vector2D |
getCurrentLaser()
Gets the right ascension and declination, both in degrees of the current
Laser pointing.
|
Number |
getForTarget(TargetDefinition star)
Gets the distance of the laser pointing to the current target
|
private Number |
getLaserDistance(double ra,
double de) |
protected Vector2D |
getTargetRaDe()
Daughter access: Get the ra/de of the target.
|
protected Vector2D |
getTargetRaDeFor(TargetDefinition star)
Daughter access: Get the ra de of this target.
|
Number |
getValue()
Returns the distance of the current laser pointing to the actual target.
|
void |
registerParameter(Parameter what)
Registers the parameters giving the ra, dec of two points.
|
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 distance.
|
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_RATARGET
public static final String KEY_DECTARGET
public static final String DEFNAME
private static final String DEFRATARGET
private static final String DEFDECTARGET
private TargetDependingValue ra
private TargetDependingValue de
public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic void registerParameter(Parameter what)
registerParameter in interface ParameterDependingpublic void registerTarget(TargetDefinition star)
registerTarget in interface TargetDependingpublic Number getForTarget(TargetDefinition star)
getForTarget in interface TargetDependingParametergetForTarget in interface TargetDependingValuepublic Number getValue()
protected Vector2D getTargetRaDe()
protected Vector2D getTargetRaDeFor(TargetDefinition star)
private Number getLaserDistance(double ra, double de)
public Number setValue(Number val) throws UnsupportedOperationException
setValue in interface ValueUnsupportedOperationExceptionpublic abstract Vector2D getCurrentLaser()