Class ModelTransformer
java.lang.Object
simDispatcher.ModelTransformer
- Version:
- 16-dic-2004 14.45.12
- Author:
- Stefano, Bertoli Marco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTransform an xml file describing the model, converting it from the JMTmodel.xsd schema to the SIMmodeldefinition.xsd schema.booleanTransform 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.booleanOUTtoMVAScaling(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.voidprintNodes(Node n) Only for debugvoidsetValidate(boolean validate) Sets if parser must validatebooleanTransform an xml file describing the model, converting it from the SIMmodeldefinition.xsd schema to the JMTmodel.xsd schema.
-
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
Only for debug -
MVAtoSIM
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 filedstPath- the path of the destination xml file- Returns:
- true if the operation is successful, false otherwise
-
SIMtoMVA
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 filedstPath- the path of the destination xml file- Returns:
- true if the operation is successful, false otherwise
-
OUTtoMVA
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 filedstPath- the path of the destination xml file- Returns:
- true if the operation is successful, false otherwise
-
OUTtoMVAScaling
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 filedstPath- the path of the destination xml file- Returns:
- true if the operation is successful, false otherwise
-