public abstract class CfgTranslator extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected AvclMission |
avcl
Generated AVCL JAXB object
|
protected OutputStream |
outStream
Default stream to which generated AVCL object is to be marshaled
|
protected Parser |
parser
Parser for non-AVCL data
|
Constructor and Description |
---|
CfgTranslator()
Creates a new instance of CfgTranslator
|
CfgTranslator(File outFile)
Creates a new instance of CfgTranslator and sets the default output stream
|
CfgTranslator(OutputStream outStream)
Creates a new instance of CfgTranslator and sets the default output stream
|
CfgTranslator(String outFile)
Creates a new instance of CfgTranslator and sets the default output stream
|
Modifier and Type | Method and Description |
---|---|
abstract AvclMission |
generateAVCL(ParseNode node)
Converts the parsed vehicle-specific data into AVCL
|
void |
marshal()
Outputs the generated AVCL to the default stream
|
void |
marshal(File outFile)
Outputs the generated AVCL to a user-specified file
|
void |
marshal(OutputStream outStream)
Outputs the generated AVCL to a user-specified stream
|
void |
marshal(String outFile)
Outputs the generated AVCL to a user-specified file
|
void |
run()
Implements Runnable interface
|
protected OutputStream outStream
protected AvclMission avcl
protected Parser parser
public CfgTranslator(String outFile) throws FileNotFoundException
outFile
- path to the desired default output fileFileNotFoundException
public CfgTranslator(File outFile) throws FileNotFoundException
outFile
- path to the desired default output fileFileNotFoundException
public CfgTranslator(OutputStream outStream)
outStream
- path to the desired default output filepublic CfgTranslator()
public abstract AvclMission generateAVCL(ParseNode node)
node
- portion of the subtree to be translated into AVCLpublic void marshal()
public void marshal(String outFile)
outFile
- path to the desired output filepublic void marshal(File outFile)
outFile
- desired output filepublic void marshal(OutputStream outStream)
outStream
- desired output stream