/// <summary> /// Gets the SBML Model from a SBML file. If it's not possible to read the SBML file /// a error message is displayed. /// </summary> public Model GetModel(string filename) { var sbmlDoc = libsbml.readSBML(filename); if (sbmlDoc.getNumErrors() > 0) { throw new MoBiException(SBMLConstants.ModelNotRead(sbmlDoc.getErrorLog().ToString())); } convertSBML(sbmlDoc); var model = sbmlDoc.getModel(); SaveSBMLInformation(model, sbmlDoc); return(model); }