org.openmodelica.simulation.core.xml.generator
Class SimulationInitial_XML_generator
java.lang.Object
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
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 |
SimulationInitial_XML_generator
public SimulationInitial_XML_generator()
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 mainclassprojectID
- Unique identifier for the simulation projectpathToInit
- Path where the init.txt file can be foundpath
- Path where the ModelInit.xml has to be storedmodelversion
- Version of the Modelica modelmodelauthor
- Author of this modelmodelcompany
- Company which has rights on this modelmodelcomment
- 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 mainclassprojectID
- Unique identifier for the simulation projectinitTXTFile
- Initial File representationprojectFolderPath
- Folder where the project has been storedmodelversion
- Version of the Modelica modelmodelauthor
- Author of this modelmodelcompany
- Company which has rights on this modelmodelcomment
- 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)