public abstract class ALcdASTERIXScalingFactorProvider extends Object
16000
, the unit is degrees, and the factor is
0.005
, that means an angle of 80 degrees.
Some other data items of some ASTERIX categories however, specify that
factor relative to a 'scaling factor' (f-value). For example the factor to
multiply the value with is specified as 2 ^ -6+f
. That scaling
factor is to be found elsewhere in the data, or from an external source. This
scaling factor provider serves the purpose of providing the scaling factor
when it cannot be retrieved from the data source. This can happen because it
is not specified where to retrieve the scaling factor from, or if it is
specified, but the actual data omits the value.Modifier and Type | Field and Description |
---|---|
static int |
CAT_1_CARTESIAN_COORDINATES
Constant indicating the scaling factor for the cartesian coordinates of
category 1 data.
|
static int |
CAT_1_DOPPLER_SPEED
Constant indicating the scaling factor for the doppler speed of category
1 data.
|
static int |
CAT_30_CARTESIAN_COORDINATES
Constant indicating the scaling factor for the cartesian coordinates of category 30 data.
|
static int |
CAT_8_FACTOR
Constant indicating the scaling factor for category 8 data.
|
Constructor and Description |
---|
ALcdASTERIXScalingFactorProvider() |
Modifier and Type | Method and Description |
---|---|
abstract int |
scalingFactor(ILcdModel aModel,
int aID)
Provides the scaling factor (f-value) for a given constant specified in
this class.
Whenever scaling factors are present in the data stream, they take
precedence over values returned by this provider.
Whenever
Integer.MIN_VALUE is returned, defaults will be
used. |
public static final int CAT_1_CARTESIAN_COORDINATES
TLcdASTERIXCategory1.I001_042_CI_CALCULATED_POSITION_CARTESIAN
.public static final int CAT_1_DOPPLER_SPEED
TLcdASTERIXCategory1.I001_120_SI_MEASURED_RADIAL_DOPPLER_SPEED
.public static final int CAT_8_FACTOR
public static final int CAT_30_CARTESIAN_COORDINATES
TLcdASTERIXCategory30.I030_100_CI_CALCULATED_TRACK_POSITION_CARTESIAN
.public abstract int scalingFactor(ILcdModel aModel, int aID)
Integer.MIN_VALUE
is returned, defaults will be
used. This can be useful to override the default behavior for a specific
constant, but to leave the defaults unchanged for other categories.aModel
- The model containing the data for which the scaling factors
are needed. It can be used to retrieve the User Application Profile (UAP)
from its ILcdModelDescriptor
, to retrieve the
ILcdDataModelDescriptor
, ILcdFeaturedDescriptor
, and so on.aID
- The id of the scaling factor: one of the constants specified in
this class.Integer.MIN_VALUE
to request
to use a a default value.