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
FieldsModifier and TypeFieldDescriptionstatic final intIndicates data that originates from FZ, AF, DZ, UZ, AZ, RZ, RT messages.static final intIndicates data that originates from TO messages.static final intIndicates data that originates from TZ messages. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the type of the model data, indicating the type of messages the model data is originating from.getFeatureClass(int aIndex) Returns theClassof the feature at the given index.intReturns the number of features.getFeaturedDescriptor(ILcdFeatured aFeatured) Gets aILcdFeaturedDescriptorthat describes theILcdFeaturedpassed.intgetFeatureIndex(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, removeAnnotationMethods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.model.ILcdDataModelDescriptor
getDataModel, getModelElementTypes, getModelTypesMethods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasureMethods 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 theTLcdDataTypeclass. 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_TRACKorDATA_TYPE_FLIGHT_PLAN.
-
getFeatureCount
public int getFeatureCount()Returns the number of features. Please refer to the class comment for additional information.- Specified by:
getFeatureCountin 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:
getFeatureNamein 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:
getFeatureIndexin interfaceILcdFeaturedDescriptor- Parameters:
aFeatureName- a feature name.- Returns:
- the index of the given feature name if it exists, -1 otherwise.
-
getFeatureClass
Returns theClassof the feature at the given index. Please refer to the class comment for additional information.- Specified by:
getFeatureClassin interfaceILcdFeaturedDescriptor- Parameters:
aIndex- a valid feature index.- Returns:
- the
Classof the feature at the given index.
-
getFeaturedDescriptor
Gets aILcdFeaturedDescriptorthat describes theILcdFeaturedpassed. Please refer to the class comment for additional information.- Specified by:
getFeaturedDescriptorin interfaceILcdFeaturedDescriptorProvider- Parameters:
aFeatured- a featured object to retrieve a featured descriptor for.- Returns:
- a
ILcdFeaturedDescriptorthat describes theILcdFeaturedpassed.
-