org.openmodelica.simulation.core.xml.generator
Class SimulationInitial_XML_generator

java.lang.Object
  extended by org.openmodelica.simulation.core.xml.generator.SimulationInitial_XML_generator

public class SimulationInitial_XML_generator
extends java.lang.Object

Generates the SimInit.xml file from the SimProj.xml and init.txt

Author:
EADS Innovation Works, Parham Vasaiely, Parham.Vasaiely@gmx.de

Constructor Summary
SimulationInitial_XML_generator()
           
 
Method Summary
static void createXML(java.lang.String modelName, java.lang.String projectID, InitTXT initTXTFile, java.lang.String projectFolderPath, java.lang.String modelversion, java.lang.String modelauthor, java.lang.String modelcompany, java.lang.String modelcomment)
          Use this method to create a ModelInit.xml with a given initTXTFile object.
static void createXML(java.lang.String modelName, java.lang.String projectID, java.lang.String pathToInit, java.lang.String path, java.lang.String modelversion, java.lang.String modelauthor, java.lang.String modelcompany, java.lang.String modelcomment)
          Use this method to create a ModelInit.xml with a path to an init.txt file but not available InitTXT class.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationInitial_XML_generator

public SimulationInitial_XML_generator()
Method Detail

createXML

public static void createXML(java.lang.String modelName,
                             java.lang.String projectID,
                             java.lang.String pathToInit,
                             java.lang.String path,
                             java.lang.String modelversion,
                             java.lang.String modelauthor,
                             java.lang.String modelcompany,
                             java.lang.String modelcomment)
                      throws java.lang.Exception
Use this method to create a ModelInit.xml with a path to an init.txt file but not available InitTXT class.

Parameters:
modelName - Modelica Model Name, usually this is the name of the Modelica mainclass
projectID - Unique identifier for the simulation project
pathToInit - Path where the init.txt file can be found
path - Path where the ModelInit.xml has to be stored
modelversion - Version of the Modelica model
modelauthor - Author of this model
modelcompany - Company which has rights on this model
modelcomment - Model developer comment
Throws:
java.io.IOException - if an I/O error occurs.
java.io.FileNotFoundException - if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason
java.lang.SecurityException - if a security manager exists and its checkWrite method denies write access to the file.
java.lang.Exception

createXML

public static void createXML(java.lang.String modelName,
                             java.lang.String projectID,
                             InitTXT initTXTFile,
                             java.lang.String projectFolderPath,
                             java.lang.String modelversion,
                             java.lang.String modelauthor,
                             java.lang.String modelcompany,
                             java.lang.String modelcomment)
                      throws java.lang.Exception
Use this method to create a ModelInit.xml with a given initTXTFile object.

Parameters:
modelName - Modelica Model Name, usually this is the name of the Modelica mainclass
projectID - Unique identifier for the simulation project
initTXTFile - Initial File representation
projectFolderPath - Folder where the project has been stored
modelversion - Version of the Modelica model
modelauthor - Author of this model
modelcompany - Company which has rights on this model
modelcomment - Model developer comment
Throws:
java.io.IOException - if an I/O error occurs.
java.io.FileNotFoundException - if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason
java.lang.SecurityException - if a security manager exists and its checkWrite method denies write access to the file.
java.lang.Exception

main

public static void main(java.lang.String[] args)