org.simulator.sedml
Class SEDMLWriter
java.lang.Object
org.simulator.sedml.SEDMLWriter
public class SEDMLWriter
- extends Object
Writes a simulation configuration to SED-ML for export and sharing.
Usage:
SEDMLWriter writer = new SEDMLWriter();
writer.setComment(comment); // optional note to annotate SED-ML
writer.saveExperimentToSEDML( start, end,
stepsize, solver, model,
modelURI, outputStream);
- Since:
- 1.1
- Version:
- $Rev: 203 $
- Author:
- Richard Adams
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEDMLWriter
public SEDMLWriter()
setComment
public void setComment(String comment)
- Set an optional human-readable comment to be added to the SED-ML file.
- Parameters:
comment -
saveExperimentToSEDML
public void saveExperimentToSEDML(double start,
double end,
double stepsize,
AbstractDESSolver solver,
Model model,
URI modelURI,
OutputStream os)
throws IOException
- Given a configured simulation, will write to SED-ML using the specified
OutputStream.
It is up to the client to manage the OutputStream an ensure it is open and writeable.
- Parameters:
start - The start time for the desired outputend - The simulation end timestepsize - The output step-sizesolver - An AbstractDESSolver, not null.model - A Model, not nullmodelURI - A URI pointing to the model locationos - A writeable, open ObjectStream
- Throws:
IOException
executeSedML
public void executeSedML(InputStream SedML)