public class AirmassTarget extends AbstractTargetValue implements TargetDependIncreasing, TargetDependDecreasing, ParameterDepending, Reloadable
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFALTTARGET
The default name of the sidereal parameter to use.
|
private static double |
DEFMINHEIGHT
The default validity border.
|
static String |
DEFNAME
The default name of this value.
|
private static DecimalFormat |
df
The formatter for the airmass.
|
private TargetDependingParameter |
height
The actual height of the target, degrees.
|
static String |
KEY_ALTTARGET
The name of the latitude to use.
|
static String |
KEY_MINHEIGHT
The height until which the airmass formular is correct.
|
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 |
|---|
AirmassTarget(Map info)
Constructs a new airmass target object.
|
| Modifier and Type | Method and Description |
|---|---|
private static Double |
calculate(Number h,
double minheight)
Calculates the airmass using the hour angle and the declination of the
target.
|
static double |
getAirmassTarget(double h)
Calculates the airmass with the default minimum height.
|
Long |
getAscendTime(Number until)
Returns the remaining time in ms.
|
Long |
getAscendTimeFor(TargetDefinition target,
Number until)
Returns the remaining time in ms.
|
Long |
getDescendTime(Number until)
Returns the remaining time in ms.
|
Long |
getDescendTimeFor(TargetDefinition target,
Number until)
Returns the remaining time in ms.
|
Number |
getForTarget(TargetDefinition star)
Gets the declination of the target star.
|
static double |
getHeight(double z)
Returns the height from the airmass.
|
Number |
getValue()
Returns the target's actual airmass, wrapped into a Double.
|
void |
registerParameter(Parameter what)
Registers the required additional globals for the Z target.
|
void |
registerTarget(TargetDefinition star)
Registers a star to this parameter.
|
double |
rescanned(String key,
String old,
String newval)
It is not possible to rescan the target height parameter name.
|
Number |
setValue(Number val)
Sets the airmass of the actual target.
|
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_ALTTARGET
public static final String KEY_MINHEIGHT
public static final String DEFNAME
private static final double DEFMINHEIGHT
private static final String DEFALTTARGET
private TargetDependingParameter height
private static final DecimalFormat df
public AirmassTarget(Map info)
public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic Number setValue(Number val) throws UnsupportedOperationException
setValue in interface ValueUnsupportedOperationExceptionpublic Number getForTarget(TargetDefinition star)
getForTarget in interface TargetDependingParametergetForTarget in interface TargetDependingValuepublic Number getValue()
public static final double getAirmassTarget(double h)
private static Double calculate(Number h, double minheight)
KEY_MINHEIGHT,
Double.POSITIVE_INFINITY is returned.
Formula is from world of astronomy. 29.9.2015: Formula from Young, A.T., Methods of Experimental Physics 12A (New York Academic Press), Chap. 3, p. 123, 1974
public void registerParameter(Parameter what)
TauTarget, DecTarget or Latitude, rather than
querrying for the global name.registerParameter in interface ParameterDependingpublic void registerTarget(TargetDefinition star)
height reference of this parameter. Note that this
will set the target in the additional parameter, too.registerTarget in interface TargetDependingpublic Long getAscendTime(Number until)
getAscendTime in interface Increasinguntil - The value in the future.public Long getDescendTime(Number until)
getDescendTime in interface Decreasinguntil - The value in the future.public Long getAscendTimeFor(TargetDefinition target, Number until)
getAscendTimeFor in interface TargetDependIncreasinguntil - The value in the future.public Long getDescendTimeFor(TargetDefinition target, Number until)
getDescendTimeFor in interface TargetDependDecreasinguntil - The value in the future.public static double getHeight(double z)