public interface ILcdDAFIFDecoder extends ILcdModelDecoder
ILcdModelDecoder
interface defines the methods
necessary for decoding a DAFIF data file.Modifier and Type | Method and Description |
---|---|
ILcdBounds |
getBounds()
Returns the initial bounds for the model.
|
Properties |
getDAFIFProperties()
Returns a DAFIF
Properties object. |
TLcdAISDataObjectFactory |
getDataObjectFactory()
Returns the Factory to be used to
create domain objects.
|
String |
getDecodeFileName()
Returns the name of the file to be decoded.
|
ILcdBounds |
getDecodingBounds()
Returns the bounds to filter on.
|
ALcdAISObjectFactory |
getDomainFactory()
Deprecated.
|
String |
getErrorMessage()
Returns the error message of the last decode call.
|
void |
setBounds(ILcdBounds aInitialBounds)
Specifies a bounds to be used as initial bounds for the model.
|
void |
setDAFIFModelFilter(ILcdDAFIFModelFilter aFilter)
Specifies a filter to be used while creating the model.
|
void |
setDAFIFProperties(Properties aDAFIFProperties)
Specifies a
Properties object containing the DAFIF properties. |
void |
setDataObjectFactory(TLcdAISDataObjectFactory aFactory)
Specifies the factory to be used to
create domain objects.
|
void |
setDecodingBounds(ILcdBounds aBoundsToFilterOn)
Specifies a bounds that will be used to filter on.
|
void |
setDomainFactory(ALcdAISObjectFactory aDomainFactory)
Deprecated.
|
void |
setStoreOriginalReference(boolean aStoreReference) |
canDecodeSource, canDecodeSource, decode, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources, getDisplayName
String getDecodeFileName()
Each domain object has its own file name. This method returns the name of the data file for the domain objects decoded by this DAFIF decoder.
void setBounds(ILcdBounds aInitialBounds)
This bounds should be large enough to enclose (most of) the model objects. This option is used to avoid to many expansions of the model bounds.
This parameter may be NULL.
Note: this bounds is not a filter! If a model objects bounds does not interact with aInitialBounds, aInitialBounds will be enlarged until it does interact.
aInitialBounds
- the initial bounds for the modelgetBounds()
void setDecodingBounds(ILcdBounds aBoundsToFilterOn)
If this bounds is null, all objects found in the input file will be inserted into the model.
If this bounds is not null, only the objects whose bounds interact with the specified bounds will be inserted into the model.
aBoundsToFilterOn
- the bounds to be used as a filtergetDecodingBounds()
@Deprecated void setDomainFactory(ALcdAISObjectFactory aDomainFactory)
setDataObjectFactory(TLcdAISDataObjectFactory)
The given domainFactory must not be null. Note that if a data object factory is set, the domain factory will not be used.
aDomainFactory
- the domainFactory to be used to
create domain objectsgetDomainFactory()
@Deprecated ALcdAISObjectFactory getDomainFactory()
getDataObjectFactory()
setDomainFactory(com.luciad.ais.model.ALcdAISObjectFactory)
TLcdAISDataObjectFactory getDataObjectFactory()
setDataObjectFactory(TLcdAISDataObjectFactory)
void setDataObjectFactory(TLcdAISDataObjectFactory aFactory)
The given factory must not be null.
aFactory
- the domainFactory to be used to
create domain objectsgetDataObjectFactory()
String getErrorMessage()
Note: the error message can only be retrieved once after a decode call.
String
object containing the errors occurred during the last decode processProperties getDAFIFProperties()
Properties
object.
The DAFIF properties contain -among other things- the links between domain
objects and their data file names.Properties
object that is used to retrieve the decode file name fromsetDAFIFProperties(java.util.Properties)
void setDAFIFProperties(Properties aDAFIFProperties)
Properties
object containing the DAFIF properties.
This object should contain for each domain object its data file name (e.g. source.refuelingTracksFile=FILE7).aDAFIFProperties
- a Properties
object containing the DAFIF propertiesgetDAFIFProperties()
,
TLcdDAFIFDataPreparatorMain
ILcdBounds getBounds()
setBounds(com.luciad.shape.ILcdBounds)
ILcdBounds getDecodingBounds()
setDecodingBounds(com.luciad.shape.ILcdBounds)
void setDAFIFModelFilter(ILcdDAFIFModelFilter aFilter)
aFilter
- an ILcdDAFIFModelFilter
to filter the model
objectsvoid setStoreOriginalReference(boolean aStoreReference)