Package org.openiaml.verification.nusmv

Examples of org.openiaml.verification.nusmv.VerificationException


      // now put into an InputStream
      return resolved.openStream();
     
    } catch (IOException e) {
      throw new VerificationException(e);
    }

  }
View Full Code Here


      File modelFile;
      try {
        monitor.subTask("Exporting model to XMI");
        modelFile = saveToFile(model, "test.iaml");
      } catch (IOException e1) {
        throw new VerificationException(e1);
      }
      monitor.worked(1);
     
      // now generate it
      monitor.subTask("Generating SMV template using OAW");
      IStatus status = gen.generateCode(modelFile, getWorkflowFile());
      if (!status.isOK()) {
        throw new VerificationException("Generation was not successful: " + status.getMessage(), status.getException());
      }
      monitor.worked(2);
     
      // load the file we wrote
      monitor.subTask("Loading generated template");
      File output = new File(getOutputFile());   
      if (!output.exists()) {
        throw new VerificationException("File '" + output + "' does not exist.");
      }
     
      // open it as an input stream
      try {
        return new BufferedInputStream(new FileInputStream(output));
      } catch (FileNotFoundException e) {
        throw new VerificationException(e);
      }
     
    } finally {
      monitor.done();
    }
View Full Code Here

TOP

Related Classes of org.openiaml.verification.nusmv.VerificationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.