Package jmt.framework.xml

Examples of jmt.framework.xml.XMLUtils.loadXML()


 
  public boolean loadModel(File xmlFile) throws SolverException {
    model = new ExactModel();
    try {
      XMLUtils xmlUtils = new XMLUtils();
      if (!model.loadDocument(xmlUtils.loadXML(xmlFile))) {
        fail("Error loading model from tempfile", null);
      }
      return true;
    } catch (SAXException e) {
      fail("XML parse error in tempfile", e);
View Full Code Here


    //Loads ExactModel and transforms it to CommonModel
    ExactModel exact = new ExactModel();
    XMLUtils xmlUtils = new XMLUtils();
    Document inputDoc;
    try {
      inputDoc = xmlUtils.loadXML(input);
      exact.loadDocument(inputDoc);
    } catch (SAXException e1) {
      logger.error("Cannot parse correctly input JMVA model: " + e1.getMessage());
      return null;
    } catch (IOException e1) {
View Full Code Here

      // Put in place all measures from classes with null service demands and adjusts throughputs
      Document outDocument;
      XMLUtils xmlUtils = new XMLUtils();
      try {
        outDocument = xmlUtils.loadXML(temp);
        addNullMeasuresCorrectThroughputs(inputModel, outDocument);
      } catch (SAXException e2) {
        logger.error("Cannot parse correctly output JMVA model: " + e2.getMessage());
        return false;
      } catch (IOException e1) {
View Full Code Here

  public boolean checkProcessingCapacity() {
    ExactModel exact = new ExactModel();
    XMLUtils xmlUtils = new XMLUtils();
    Document inputDoc;
    try {
      inputDoc = xmlUtils.loadXML(modelDefinition);
      exact.loadDocument(inputDoc);
    } catch (SAXException e1) {
      logger.error("Cannot parse correctly input JMVA model: " + e1.getMessage());
      return false;
    } catch (IOException e1) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.