Class ModelTransformer

java.lang.Object
simDispatcher.ModelTransformer

public class ModelTransformer extends Object
Version:
16-dic-2004 14.45.12
Author:
Stefano, Bertoli Marco
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    MVAtoSIM(String srcPath, String dstPath)
    Transform an xml file describing the model, converting it from the JMTmodel.xsd schema to the SIMmodeldefinition.xsd schema.
    boolean
    OUTtoMVA(String srcPath, String dstPath)
    Transform an xml file containing the simulation results (SIMmodeloutput), converting it in a file with the model definition and the results following the JMTmodel.xsd schema.
    boolean
    OUTtoMVAScaling(String srcPath, String dstPath)
    Transform an xml file containing the simulation results (SIMmodeloutput), converting it in a file with the model definition and the results following the JMTmodel.xsd schema.
    void
    Only for debug
    void
    setValidate(boolean validate)
    Sets if parser must validate
    boolean
    SIMtoMVA(String srcPath, String dstPath)
    Transform an xml file describing the model, converting it from the SIMmodeldefinition.xsd schema to the JMTmodel.xsd schema.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelTransformer

      public ModelTransformer()
  • Method Details

    • setValidate

      public void setValidate(boolean validate)
      Sets if parser must validate
      Parameters:
      validate - true if parser must validate, false otherwise
    • printNodes

      public void printNodes(Node n)
      Only for debug
    • MVAtoSIM

      public boolean MVAtoSIM(String srcPath, String dstPath)
      Transform an xml file describing the model, converting it from the JMTmodel.xsd schema to the SIMmodeldefinition.xsd schema.
      Parameters:
      srcPath - the path of the original xml file
      dstPath - the path of the destination xml file
      Returns:
      true if the operation is successful, false otherwise
    • SIMtoMVA

      public boolean SIMtoMVA(String srcPath, String dstPath)
      Transform an xml file describing the model, converting it from the SIMmodeldefinition.xsd schema to the JMTmodel.xsd schema.
      Parameters:
      srcPath - the path of the original xml file
      dstPath - the path of the destination xml file
      Returns:
      true if the operation is successful, false otherwise
    • OUTtoMVA

      public boolean OUTtoMVA(String srcPath, String dstPath)
      Transform an xml file containing the simulation results (SIMmodeloutput), converting it in a file with the model definition and the results following the JMTmodel.xsd schema.
      Parameters:
      srcPath - the path of the original xml file
      dstPath - the path of the destination xml file
      Returns:
      true if the operation is successful, false otherwise
    • OUTtoMVAScaling

      public boolean OUTtoMVAScaling(String srcPath, String dstPath)
      Transform an xml file containing the simulation results (SIMmodeloutput), converting it in a file with the model definition and the results following the JMTmodel.xsd schema. This must be used together with XSLT transformer that changes Residence times
      Parameters:
      srcPath - the path of the original xml file
      dstPath - the path of the destination xml file
      Returns:
      true if the operation is successful, false otherwise