public class TLcdDAFIFTIndependentAerodromeNavaidDecoder extends TLcdDAFIFTAerodromeNavaidDecoder
TLcdDAFIFTAerodromeNavaidDecoder
class can be used to produce
a model without having to specify a navaid model first. The decoded models have as model descriptor
an instance of TLcdDAFIFAerodromeNavaidModelListDescriptor
.
The TLcdDAFIFTIndependentAerodromeNavaidDecoder
will decode the navaids himself. The
navaids in the final model will be retrieved from the resulting model list.
To decode the navaid model list, the TLcdDAFIFTIndependentAerodromeNavaidDecoder
will
look for a navaid source file in the source directory to be decoded. If no navaid source file is
found in this directory, or the navaid source file does not cover the aerodrome-navaid source file,
exceptions will occur during the decode process.TLcdDAFIFTAerodromeNavaidDecoder
Constructor and Description |
---|
TLcdDAFIFTIndependentAerodromeNavaidDecoder(ALcdAISObjectFactory aDomainFactory)
Deprecated.
|
TLcdDAFIFTIndependentAerodromeNavaidDecoder(TLcdAISDataObjectFactory aDomainFactory)
Creates a new
TLcdDAFIFTIndependentAerodromeNavaidDecoder object. |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeSource(String aSource)
Tests whether the
canDecodeSource method of all decoders on which
this decoder depends on, return true . |
ILcdModel |
decode(String aSource)
Creates a navaid model list before starting the decode process.
|
TLcdAISDataObjectFactory |
getDataObjectFactory()
Returns the factory that is used to create domain objects.
|
ALcdAISObjectFactory |
getDomainFactory()
Deprecated.
|
String |
getErrorMessage()
Returns the error message of the last decode call.
|
ILcdInputStreamFactory |
getInputStreamFactory()
Returns the input stream factory that is currently used for creating
the input streams for the given source names.
|
int |
getMaxNumberOfErrorReports()
Returns the number of error reports to be added to the error message.
|
ILcdDAFIFTRecordFilter |
getRecordFilter()
Returns the record filter that is currently used.
|
String[] |
getUniqueKeyFeatureNames(int aIndex)
Returns for the given submodel the array of
String objects containing the names
of the features that will be used as a unique key to insert objects into the submodel. |
void |
setDataObjectFactory(TLcdAISDataObjectFactory aFactory)
Specifies the data factory.
|
void |
setDomainFactory(ALcdAISObjectFactory aDomainFactory)
Deprecated.
|
void |
setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
Sets the input stream factory that will be used for creating the
input streams for the given source names.
|
void |
setMaxNumberOfErrorReports(int aMaxNumberOfErrorReports)
Specifies a value for the maximum number of error reports.
|
void |
setRecordFilter(ILcdDAFIFTRecordFilter aRecordFilter)
Specifies a filter to be used while creating the model.
|
getDisplayName, setDMEDefaultDisplayNameIndex, setNavaidModel, setNDBDefaultDisplayNameIndex, setTACANDefaultDisplayNameIndex, setVORDefaultDisplayNameIndex
getDecodingBounds, getModelFilter, setDecodingBounds, setModelFilter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
@Deprecated public TLcdDAFIFTIndependentAerodromeNavaidDecoder(ALcdAISObjectFactory aDomainFactory)
TLcdDAFIFTIndependentAerodromeNavaidDecoder
object. The user
should specify which aDomainFactory he or she wants to use to create the navaids.
Please note that the specified aDomainFactory must not be null
!!aDomainFactory
- The factory to be used to create the model objects.public TLcdDAFIFTIndependentAerodromeNavaidDecoder(TLcdAISDataObjectFactory aDomainFactory)
TLcdDAFIFTIndependentAerodromeNavaidDecoder
object. The user
should specify which aDomainFactory he or she wants to use to create the navaids.
Please note that the specified aDomainFactory must not be null
!!aDomainFactory
- The factory to be used to create the model objects.public boolean canDecodeSource(String aSource)
canDecodeSource
method of all decoders on which
this decoder depends on, return true
.canDecodeSource
in interface ILcdModelDecoder
aSource
- The name of the source file or directory that you want to decode.true
if this decoder can decode the data specified by the
source name, false
otherwise.ILcdModelDecoder.decode(String)
,
ILcdModelDecoder.decodeModelMetadata(String)
public ILcdModel decode(String aSource) throws IOException
TLcdDAFIFTAerodromeNavaidDecoder.decode(String)
) is called.decode
in interface ILcdModelDecoder
decode
in class TLcdDAFIFTAerodromeNavaidDecoder
aSource
- Either the directory containing the DAFIFT source file to decode
or the DAFIFT source file itself.IOException
- if an error occurs during the reading process.IllegalStateException
- if no navaid model could be created.ILcdModelDecoder.canDecodeSource(String)
public String[] getUniqueKeyFeatureNames(int aIndex)
String
objects containing the names
of the features that will be used as a unique key to insert objects into the submodel.aIndex
- The index of the submodel whose unique key feature names are being retrieved.@Deprecated public ALcdAISObjectFactory getDomainFactory()
getDataObjectFactory()
setDomainFactory(ALcdAISObjectFactory)
@Deprecated public void setDomainFactory(ALcdAISObjectFactory aDomainFactory)
setDataObjectFactory(TLcdAISDataObjectFactory)
aDomainFactory
- The factory that will be used to create domain objects.getDomainFactory()
public TLcdAISDataObjectFactory getDataObjectFactory()
setDomainFactory(ALcdAISObjectFactory)
public void setDataObjectFactory(TLcdAISDataObjectFactory aFactory)
null
, will
NOT use their associated domain factory (see getDomainFactory()
).aFactory
- The factory that will be used to create domain objects.getDomainFactory()
public ILcdInputStreamFactory getInputStreamFactory()
getInputStreamFactory
in interface ILcdInputStreamFactoryCapable
setInputStreamFactory(ILcdInputStreamFactory)
public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
setInputStreamFactory
in interface ILcdInputStreamFactoryCapable
aInputStreamFactory
- The input stream factory to be used.getInputStreamFactory()
public ILcdDAFIFTRecordFilter getRecordFilter()
setRecordFilter(ILcdDAFIFTRecordFilter)
public void setRecordFilter(ILcdDAFIFTRecordFilter aRecordFilter)
aRecordFilter
- The record filter that should be passed before a record
can be decoded.getRecordFilter()
public int getMaxNumberOfErrorReports()
setMaxNumberOfErrorReports(int)
public void setMaxNumberOfErrorReports(int aMaxNumberOfErrorReports)
aMaxNumberOfErrorReports
- The maximum number of error reports to be added to the error message.getMaxNumberOfErrorReports()
public String getErrorMessage()
String
object containing the errors occurred during
the last decode process.