public class AriesCfgTranslator extends CfgTranslator
avcl, outStream, parser
Constructor and Description |
---|
AriesCfgTranslator(File inFile)
Creates a new instance of AriesCfgTranslator
|
AriesCfgTranslator(File inFile,
File outFile)
Creates a new instance of AriesCfgTranslator
|
AriesCfgTranslator(InputStream inStream)
Creates a new instance of AriesCfgTranslator
|
AriesCfgTranslator(InputStream inStream,
OutputStream outStream)
Creates a new instance of AriesCfgTranslator
|
AriesCfgTranslator(String fileName)
Creates a new instance of AriesCfgTranslator
|
AriesCfgTranslator(String inFile,
String outFile)
Creates a new instance of AriesCfgTranslator
|
Modifier and Type | Method and Description |
---|---|
AvclMission |
generateAVCL(ParseNode node)
Converts the parsed vehicle-specific data into AVCL
by traversing parse tree recursively
|
static void |
main(String[] args) |
public AriesCfgTranslator(String fileName) throws FileNotFoundException, Throwable
fileName
- path to the file to be parsedFileNotFoundException
Throwable
public AriesCfgTranslator(File inFile) throws FileNotFoundException, Throwable
inFile
- File object from which context free grammar instance is to be readFileNotFoundException
Throwable
public AriesCfgTranslator(InputStream inStream) throws Throwable
inStream
- InputStream from which context free grammar instance is to be readThrowable
public AriesCfgTranslator(String inFile, String outFile) throws FileNotFoundException, Throwable
inFile
- path to the file to be parsedoutFile
- path to the default output fileFileNotFoundException
Throwable
public AriesCfgTranslator(File inFile, File outFile) throws FileNotFoundException, Throwable
inFile
- File object from which context free grammar instance is to be readoutFile
- File object to which generated AVCL will be marshalled by defaultFileNotFoundException
Throwable
public AriesCfgTranslator(InputStream inStream, OutputStream outStream) throws Throwable
inStream
- InputStream from which context free grammar instance is to be readoutStream
- Throwable
public AvclMission generateAVCL(ParseNode node)
generateAVCL
in class CfgTranslator
node
- portion of the subtree to be translated into AVCLAvclMission
public static void main(String[] args)
args
- the command line arguments