Skip to content
Snippets Groups Projects
Commit de6696f3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

parsing and exporting of constant and boundary condition added

parent ade0882b
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!508Resolve "Export to SBML results in invalid SBML file"
......@@ -33,6 +33,12 @@ public class SbmlSpeciesExporter extends SbmlElementExporter<Species, org.sbml.j
if (element.hasOnlySubstanceUnits() != null) {
result.setHasOnlySubstanceUnits(element.hasOnlySubstanceUnits());
}
if (element.getBoundaryCondition() != null) {
result.setBoundaryCondition(element.getBoundaryCondition());
}
if (element.getConstant() != null) {
result.setConstant(element.getConstant());
}
return result;
}
......
......@@ -40,6 +40,12 @@ public class SbmlSpeciesParser extends SbmlElementParser<org.sbml.jsbml.Species>
if (species.isSetHasOnlySubstanceUnits()) {
result.setOnlySubstanceUnits(species.hasOnlySubstanceUnits());
}
if (species.isSetBoundaryCondition()) {
result.setBoundaryCondition(species.getBoundaryCondition());
}
if (species.isSetConstant()) {
result.setConstant(species.getConstant());
}
assignBioEntityData(species, result);
if (layout == null) {
assignCompartment(result, species.getCompartment());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment