Location: Metabolic Component Library @ b9be078f1e21 / CellML-source / CellMLTools / src / tools / CellMLReader.java

Author:
Matthias K?nig <matthias.koenig@charite.de>
Date:
2013-04-18 21:52:42+02:00
Desc:
Wolf Heinrich Example implemented and working !
Permanent Source URI:
https://models.cellml.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/b9be078f1e2152d7c1b817af12a7ddcb8db3c0df/CellML-source/CellMLTools/src/tools/CellMLReader.java

package tools;
import cellml_api.CellMLBootstrap;
import cellml_api.Model;

public class CellMLReader {
	
  public static Model loadFromURL(CellMLBootstrap cb, String inputFileName){
    return cb.getModelLoader().loadFromURL(inputFileName);
  }
  
  public static Model createModel(CellMLBootstrap cb, String modelString){
    return cb.createModel(modelString);
  }
}