public class TLcdDAFIFTDataPreparatorMain extends Object implements ILcdStatusSource
TLcdDAFIFTDataPreparatorMain
class will create a directory tree. The top directory, that should be specified in the config file,
will contain a sub directory for each ICAO region found in the source data.
Each sub directory contains
TLcdDAFIFDataPreparatorMain
class also writes
a dafift.toc file into the top directory. This dafif.toc
properties file is empty.
The result of running the TLcdDAFIFTDataPreparatorMain
class will look like this:
- <split_directory> - AG - ARPT ACOM.TXT ACOM_RMK.TXT ... - BDRY BDRY.TXT BDRY_PAR.TXT ... ... dafift.toc - AN - ARPT ACOM.TXT ACOM_RMK.TXT ... - BDRY BDRY.TXT BDRY_PAR.TXT ... ... dafift.toc ... dafift.tocNote that entities, such as waypoints and routes, are not split independently. This means, for example, that when a certain route depends on waypoints not in its own ICAO region, this waypoint will be added to the waypoint file for this region, and the affected route segments will be added to the route.
Constructor and Description |
---|
TLcdDAFIFTDataPreparatorMain() |
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(ILcdStatusListener aListener)
Adds an
ILcdStatusListener , which will be triggered with
progress messages during the data preparation process. |
String |
getDecoderErrorMessages()
Returns the concatenated error messages of the different decoders used to split the DAFIFT data.
|
static boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
static void |
main(String[] aArguments)
Configures the data preparator and starts the data preparing process.
|
void |
prepareData()
Separates all DAFIFT data files found in the source directory over a set of subdirectories.
|
void |
removeStatusListener(ILcdStatusListener aListener)
Removes the specified status listener.
|
void |
setProperties(Properties aProperties)
Specifies a properties object.
|
static void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
public void addStatusListener(ILcdStatusListener aListener)
ILcdStatusListener
, which will be triggered with
progress messages during the data preparation process.addStatusListener
in interface ILcdStatusSource
aListener
- an ILcdStatusListener
public void removeStatusListener(ILcdStatusListener aListener)
removeStatusListener
in interface ILcdStatusSource
aListener
- an ILcdStatusListener
public static boolean isTraceOn()
true
if tracing is enabled for this class.public static void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.aTraceOn
- if true then all log messages are recorded for this
instance. If false, then only the informative, warning and
error log messages are recorded.public String getDecoderErrorMessages()
prepareData
call.public void setProperties(Properties aProperties)
aProperties
- the properties object to be used during the splitting processmain(java.lang.String[])
public void prepareData()
public static void main(String[] aArguments)
aArguments
- The main argument list.