Location: Metabolic Component Library @ f963a33d3d8f / CellML-source / CellMLTools / src / tools / CellMLWriter.java
- Author:
- Matthias K?nig <matthias.koenig@charite.de>
- Date:
- 2013-04-21 20:13:13+02:00
- Desc:
- Nazaret 2009 example implemented and integratable. Results between normal and MCL implementation not identical ! Problems with original model implementation (no steady state)!
- Permanent Source URI:
- https://staging.physiomeproject.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/f963a33d3d8fb4ce27a9e04729b5038282db7623/CellML-source/CellMLTools/src/tools/CellMLWriter.java
package tools;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import cellml_api.Model;
public class CellMLWriter {
public static void writeToFile(Model model, String outputFileName ){
try{
PrintWriter writer = new PrintWriter(new FileWriter(outputFileName));
writer.println(model.getSerialisedText());
writer.close();
}
catch(IOException e)
{
e.printStackTrace();
}
}
}
