Class TLcdPOLModelDescriptor

All Implemented Interfaces:
ILcdDataModelDescriptor, ILcdModelDescriptor, ILcdFeaturedDescriptor, ILcdFeaturedDescriptorProvider, Serializable

public class TLcdPOLModelDescriptor extends TLcdFeaturedModelDescriptor implements ILcdDataModelDescriptor
A featured model descriptor for models that contain POL objects. The features are predefined. The descriptor contains a table with the types present in the model and the bounds of the model.
See Also:
  • Constructor Details

    • TLcdPOLModelDescriptor

      public TLcdPOLModelDescriptor(String aSourceName, String aTypeName, String aDisplayName, ILcdPOLTypeTable aTypeTable, ILcdBounds aViewBounds)
      Constructs a descriptor for a model created by a TLcdPOLModelDecoder.
      Parameters:
      aSourceName - identifies the source of the models data.
      aTypeName - the type of data contained in the model.
      aDisplayName - the display name for the model.
      aTypeTable - the table of geometry types contained in the model.
      aViewBounds - the area of interest. This is referred to as the 'Current View Extents' in the TAAM reference documentation.
  • Method Details

    • getTypeTable

      public ILcdPOLTypeTable getTypeTable()
      Returns the table of geometries contained in the model.
      Returns:
      the table of geometries contained in the model.
    • getViewBounds

      public ILcdBounds getViewBounds()
      Returns the area of interest as it was read from the data. This AOI is is contained in the models bounds.
      Returns:
      the area of interest as it was read from the data.
    • getDataModel

      public TLcdDataModel getDataModel()
      Description copied from interface: ILcdDataModelDescriptor

      Returns the data model that describes the elements of the model. Note that not necessarily all data in the model will be of a type of this data model. Very likely, types from the dependencies of the returned data model are used as well.

      In case the model accepts objects from multiple data models, an anonymous data model that depends on all these data models should be returned (see TLcdDataModelBuilder.createAnonymousDataModel(java.util.Collection)).

      Specified by:
      getDataModel in interface ILcdDataModelDescriptor
      Returns:
      the data model that describes the elements of the model
    • getModelElementTypes

      public Set<TLcdDataType> getModelElementTypes()
      Description copied from interface: ILcdDataModelDescriptor

      Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually elements in the model; but they are not required to do so.

      Implementations should return null in case they don't know which element types are present in the model.

      For each element of the model associated with this model descriptor, the following holds true : getModelElementTypes().contains( element.getDataType() ).

      Specified by:
      getModelElementTypes in interface ILcdDataModelDescriptor
      Returns:
      a set containing all the data types of which instances can be elements in the model associated with this descriptor
    • getModelTypes

      public Set<TLcdDataType> getModelTypes()
      Description copied from interface: ILcdDataModelDescriptor

      Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually instances in the model; but they are not required to do so.

      A simple and correct implementation would be to return getDataModel().getTypes(). Implementations are encouraged to return a subset of this set if they can do so without spending an unreasonable amount of resources.

      Implementations should return null in case they don't know which types are present in the model.

      Specified by:
      getModelTypes in interface ILcdDataModelDescriptor
      Returns:
      a set containing all the data types of which instances can be used in the model associated with this descriptor