Package com.luciad.format.asdi
Class ALcdASDIModelDescriptor
java.lang.Object
com.luciad.model.TLcdModelDescriptor
com.luciad.model.TLcdDataModelDescriptor
com.luciad.format.asdi.ALcdASDIModelDescriptor
- All Implemented Interfaces:
ILcdAnnotatedElement
,ILcdDataModelDescriptor
,ILcdModelDescriptor
,ILcdFeaturedDescriptor
,ILcdFeaturedDescriptorProvider
,Serializable
- Direct Known Subclasses:
TLcdASDIFlightPlanHistoryModelDescriptor
,TLcdASDIFlightPlanModelDescriptor
,TLcdASDITrackModelDescriptor
,TLcdASDITrajectoryModelDescriptor
public abstract class ALcdASDIModelDescriptor
extends TLcdDataModelDescriptor
implements ILcdModelDescriptor, ILcdFeaturedDescriptor, ILcdFeaturedDescriptorProvider, ILcdDataModelDescriptor
Base class for all
ILcdModelDescriptor
classes of
all ILcdModel
classes containing ASDI data.
This model descriptor is a ILcdDataModelDescriptor
. ASDI domain model objects
implement the ILcdDataObject
interface to model their additional attributes. The
TLcdDataType
that accompanies these domain objects can be retrieved using the TLcdDataModelDescriptor.getModelElementTypes()
,
which will return a single type per ASDI model. This type models all properties of the ASDI model element. These properties
can also be found statically in any of the following classes: TLcdASDITrackTODataTypes
, TLcdASDITrackTZDataTypes
,TLcdASDIFlightPlanDataTypes
. The ILcdDataObject
interface is a preferred alternative
to the outdated ILcdFeatured
interface.
This model descriptor is also a ILcdFeaturedDescriptor
for reasons of backwards compatibility.
ASDI domain objects implement the ILcdFeatured
to provide a way to access the same data that can be
accessed through the ILcdDataObject
interface. Additional meta-information about
those features (such as their descriptive name or feature class) can be retrieved using the
methods of the ILcdFeaturedDescriptor
interface that is
implemented by this model descriptor.
Often domain objects have extra methods to retrieve additional features.
For instance the TLcdASDITrajectory
class has methods
getTrackFeatureCount()
and
getTrackFeature(int aIndex, int aFeatureIndex)
to retrieve the track features.
In these cases also extra methods exist on the model descriptors
to retrieve the ILcdFeaturedDescriptor
for the additional features.
For instance the TLcdASDITrajectoryModelDescriptor
class that is the
descriptor for models containing TLcdASDITrajectory
objects has a method
getTrackFeaturedDescriptor()
to retrieve the descriptor for the track features.
Certain feature values (for instance retrieved
using ILcdFeatured.getFeature(int)
) can again return an
ILcdFeatured
object. That object also needs an
ILcdFeaturedDescriptor
to be able to specify all meta data. That
ILcdFeaturedDescriptor
can be retrieved from this model
descriptor through its ILcdFeaturedDescriptorProvider
interface.
Simply invoke getFeaturedDescriptor(com.luciad.util.ILcdFeatured)
for that featured object to obtain the associated
ILcdFeaturedDescriptor
.
Note that the ILcdFeaturedDescriptor
of a list feature is also a
ILcdCollectionFeaturedDescriptor
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates data that originates from FZ, AF, DZ, UZ, AZ, RZ, RT messages.static final int
Indicates data that originates from TO messages.static final int
Indicates data that originates from TZ messages. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the type of the model data, indicating the type of messages the model data is originating from.getFeatureClass
(int aIndex) Returns theClass
of the feature at the given index.int
Returns the number of features.getFeaturedDescriptor
(ILcdFeatured aFeatured) Gets aILcdFeaturedDescriptor
that describes theILcdFeatured
passed.int
getFeatureIndex
(String aFeatureName) Returns the index of the given feature name if it exists, -1 otherwise.getFeatureName
(int aIndex) Returns the name of the feature at the given index.Methods inherited from class com.luciad.model.TLcdDataModelDescriptor
addAnnotation, getAnnotation, getAnnotations, getDataModel, getModelElementTypes, getModelTypes, isAnnotationPresent, removeAnnotation
Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcdDataModelDescriptor
getDataModel, getModelElementTypes, getModelTypes
Methods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasure
Methods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Field Details
-
DATA_TYPE_TZ_TRACK
public static final int DATA_TYPE_TZ_TRACKIndicates data that originates from TZ messages. Used ingetDataType()
to indicate the source of the model data.- See Also:
-
DATA_TYPE_TO_TRACK
public static final int DATA_TYPE_TO_TRACKIndicates data that originates from TO messages. Used ingetDataType()
to indicate the source of the model data.- See Also:
-
DATA_TYPE_FLIGHT_PLAN
public static final int DATA_TYPE_FLIGHT_PLANIndicates data that originates from FZ, AF, DZ, UZ, AZ, RZ, RT messages. Used ingetDataType()
to indicate the source of the model data.- See Also:
-
-
Method Details
-
getDataType
public int getDataType()Returns the type of the model data, indicating the type of messages the model data is originating from. Please note that this data type has nothing to do with theTLcdDataType
class. The declared data types can be obtained using theTLcdDataModelDescriptor.getModelTypes()
, and the model element types can be obtained using theTLcdDataModelDescriptor.getModelElementTypes()
method.- Returns:
- Returns the type of the model data, indicating the type of messages the model data is originating from.
It can be one of
DATA_TYPE_TZ_TRACK
,DATA_TYPE_TO_TRACK
orDATA_TYPE_FLIGHT_PLAN
.
-
getFeatureCount
public int getFeatureCount()Returns the number of features. Please refer to the class comment for additional information.- Specified by:
getFeatureCount
in interfaceILcdFeaturedDescriptor
- Returns:
- the number of features.
-
getFeatureName
Returns the name of the feature at the given index. Please refer to the class comment for additional information.- Specified by:
getFeatureName
in interfaceILcdFeaturedDescriptor
- Parameters:
aIndex
- a valid feature index.- Returns:
- the name of the feature at the given index.
-
getFeatureIndex
Returns the index of the given feature name if it exists, -1 otherwise. Please refer to the class comment for additional information.- Specified by:
getFeatureIndex
in interfaceILcdFeaturedDescriptor
- Parameters:
aFeatureName
- a feature name.- Returns:
- the index of the given feature name if it exists, -1 otherwise.
-
getFeatureClass
Returns theClass
of the feature at the given index. Please refer to the class comment for additional information.- Specified by:
getFeatureClass
in interfaceILcdFeaturedDescriptor
- Parameters:
aIndex
- a valid feature index.- Returns:
- the
Class
of the feature at the given index.
-
getFeaturedDescriptor
Gets aILcdFeaturedDescriptor
that describes theILcdFeatured
passed. Please refer to the class comment for additional information.- Specified by:
getFeaturedDescriptor
in interfaceILcdFeaturedDescriptorProvider
- Parameters:
aFeatured
- a featured object to retrieve a featured descriptor for.- Returns:
- a
ILcdFeaturedDescriptor
that describes theILcdFeatured
passed.
-