public abstract class PointingFunction extends Object implements VectorFunction
get POINTING.MODEL.TYPE
0=none, 1=classic, 2=extended
pm = PointigFunction.createFromType()
for (parname : pm.getParameters())
p = get POINTING.MODEL.[CLASSIC|EXTENDED].parname
pm.setParameter(parname, p)
and then use it with the queried az alt
POSITION.HORIZONTAL.AZ and POSITION.HORIZONTAL.ALT
in Vector2D daz,dalt = pm.evaluate()
A nice present is the version change in Pilar.
Suddenly more parameters are added and additionally their name changes.
TSI does not provide a method to ask for the names of the parameters
present, there is the vague possibility to trace that via the version
number. To circumvent these fallacy, there is a hardcoded VERSION, which
points to EXTENDED.FULL foer versions zero and to EXTENDED.EXTENDED in
others. I'm sure this gone change again, so sit tight.| Modifier and Type | Class and Description |
|---|---|
static class |
PointingFunction.ClassicModel
The classical pointing model.
|
static class |
PointingFunction.ExtendedModel
The extended pointing model.
|
static class |
PointingFunction.FullModel
The extended pointing model for version zero.
|
| Modifier and Type | Field and Description |
|---|---|
static String[] |
POINTINGMODELS
Pointing models known.
|
private static int |
VERSION
Workaround for changing variable names.
|
| Constructor and Description |
|---|
PointingFunction() |
| Modifier and Type | Method and Description |
|---|---|
int |
argumentDimension()
We act on az/alt, thus we return 2 here.
|
static PointingFunction |
createFromType(int type,
int version)
We create a pointing function from a
POINTING.MODEL.TYPE
Currently, zero, one and 2 are supported. |
int |
functionDimension()
The default implementation returns two corrections one fror az and alt.
|
abstract String |
getModelName()
Returns the name of this model.
|
abstract Set<String> |
getParameterNames()
Returns the parameter names as known by pilar.
|
abstract boolean |
setParameter(String name,
double value)
Sets one parameter by its name to a certain value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluateprivate static final int VERSION
public static final String[] POINTINGMODELS
public int argumentDimension()
argumentDimension in interface VectorFunctionpublic int functionDimension()
functionDimension in interface VectorFunctionpublic abstract String getModelName()
public abstract Set<String> getParameterNames()
public abstract boolean setParameter(String name, double value)
public static PointingFunction createFromType(int type, int version)
POINTING.MODEL.TYPE
Currently, zero, one and 2 are supported.