Search in sources :

Example 1 with Vdm2Csv

use of com.ge.research.osate.verdict.vdm2csv.Vdm2Csv in project VERDICT by ge-high-assurance.

the class GSNHandler method runAadl2Csv.

/**
 * Calls Aadl2Csv translator
 * @param dir
 * @param stemOutputDir
 * @param soteriaOutputDir
 */
public static void runAadl2Csv(File dir, String stemOutputDir, String soteriaOutputDir) {
    Agree2Vdm agree2vdm = new Agree2Vdm();
    Model model = agree2vdm.execute(dir);
    Vdm2Csv vdm2csv = new Vdm2Csv();
    vdm2csv.execute(model, stemOutputDir, soteriaOutputDir, dir.getName());
}
Also used : Vdm2Csv(com.ge.research.osate.verdict.vdm2csv.Vdm2Csv) Model(verdict.vdm.vdm_model.Model) Agree2Vdm(com.ge.research.osate.verdict.aadl2vdm.Agree2Vdm)

Example 2 with Vdm2Csv

use of com.ge.research.osate.verdict.vdm2csv.Vdm2Csv in project VERDICT by ge-high-assurance.

the class MBASSynthesisHandler method runAadl2CsvWithSynthesis.

/**
 * Calls Aadl2Csv translator with synthesis enabled
 * @param dir
 * @param vdmFile
 * @param stemOutputDir
 * @param soteriaOutputDir
 */
public static void runAadl2CsvWithSynthesis(File dir, File vdmFile, String stemOutputDir, String soteriaOutputDir) {
    Agree2Vdm agree2vdm = new Agree2Vdm();
    Model model = agree2vdm.execute(dir);
    VdmTranslator.marshalToXml(model, vdmFile);
    Vdm2Csv vdm2csv = new Vdm2Csv(true);
    vdm2csv.execute(model, stemOutputDir, soteriaOutputDir, dir.getName());
}
Also used : Vdm2Csv(com.ge.research.osate.verdict.vdm2csv.Vdm2Csv) Model(verdict.vdm.vdm_model.Model) Agree2Vdm(com.ge.research.osate.verdict.aadl2vdm.Agree2Vdm)

Example 3 with Vdm2Csv

use of com.ge.research.osate.verdict.vdm2csv.Vdm2Csv in project VERDICT by ge-high-assurance.

the class MBASHandler method runAadl2Csv.

public static void runAadl2Csv(File dir, String stemOutputDir, String soteriaOutputDir) {
    Agree2Vdm agree2vdm = new Agree2Vdm();
    Model model = agree2vdm.execute(dir);
    Vdm2Csv vdm2csv = new Vdm2Csv();
    vdm2csv.execute(model, stemOutputDir, soteriaOutputDir, dir.getName());
}
Also used : Vdm2Csv(com.ge.research.osate.verdict.vdm2csv.Vdm2Csv) Model(verdict.vdm.vdm_model.Model) Agree2Vdm(com.ge.research.osate.verdict.aadl2vdm.Agree2Vdm)

Aggregations

Agree2Vdm (com.ge.research.osate.verdict.aadl2vdm.Agree2Vdm)3 Vdm2Csv (com.ge.research.osate.verdict.vdm2csv.Vdm2Csv)3 Model (verdict.vdm.vdm_model.Model)3