public class Horizon extends AbstractTargetValue implements ParameterDepending
Vignetting
interface.| Modifier and Type | Class and Description |
|---|---|
private static class |
Horizon.Ellipsoidal
The class to calculate the shadow of two elliptical roofs, like in
STELLA.
|
static class |
Horizon.Show
We display a panel that shows stella1-vigentting as gray-shaded
|
static class |
Horizon.Stella1
The vignetting introduced by the building for stella1.
|
static class |
Horizon.Stella2
The vignetting introduced by the building for stella2.
|
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private TargetDependingValue |
alt
The altitude value.
|
private TargetDependingValue |
az
The azimuth parameter.
|
private Vignetting |
cap
The vignetting instance.
|
private static String |
DEFALT
The default name of the az parameter.
|
private static String |
DEFAZ
The default name of the az parameter.
|
static String |
DEFNAME
Default name of this parameter.
|
private static String |
DEFVIGNETTING
The default vignetting class is for STELLA-1.
|
static String |
KEY_ALT
The name of the altitude target parameter.
|
static String |
KEY_AZ
The name of the azimuth target parameter.
|
static String |
KEY_VIGNETTING
This points to the name of the class used for
Vignetting. |
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 |
|---|
Horizon(Map<String,String> info)
Constructs a new airmass target object.
|
| Modifier and Type | Method and Description |
|---|---|
private Double |
calculate(Number aztarget,
Number alttarget)
Calculates the azimuth using the hour angle and the declination of
the target.
|
Number |
getForTarget(TargetDefinition star)
Gets the declination of the target star.
|
Number |
getValue()
Returns the target's actual airmass, wrapped into a
Double.
|
void |
init()
Initializes the horizon with its vignetting instance if possible.
|
void |
registerParameter(Parameter what)
Registers the required additional globals for the Z target.
|
void |
registerTarget(TargetDefinition star)
Registers a star to this parameter.
|
Number |
setValue(Number val)
Sets the airmass of the actual target.
|
get, setgetAsStar, getConstant, getFormattedFor, getSetupcreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, overrideDefaultName, register, rescanned, 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, waitgetFormattedForgetFormatted, 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, stringPropertiespublic static final String KEY_VIGNETTING
Vignetting.public static final String KEY_AZ
public static final String KEY_ALT
public static final String DEFNAME
private static final String DEFVIGNETTING
private static final String DEFAZ
private static final String DEFALT
private Vignetting cap
private TargetDependingValue az
private TargetDependingValue alt
public void init()
throws InitException
init in interface Initializableinit in class AbstractParameterInitExceptionpublic Number setValue(Number val) throws UnsupportedOperationException
setValue in interface ValueUnsupportedOperationExceptionpublic Number getForTarget(TargetDefinition star)
getForTarget in interface TargetDependingParametergetForTarget in interface TargetDependingValuepublic Number getValue()
private Double calculate(Number aztarget, Number alttarget)
tan(a)=sin(τ)/(sin(φ)cos(τ)-tan(δ)cos(φ))
public void registerParameter(Parameter what)
TauTarget, DecTarget or Latitude,
rather than querrying for the global name.registerParameter in interface ParameterDependingpublic void registerTarget(TargetDefinition star)
#tau and #dec
reference of this parameter. Note that this
will set the target in the additional parameter, too.registerTarget in interface TargetDepending