use of org.vcell.sbml.vcell.SBMLStandaloneImporter in project vcell by virtualcell.
the class SBMLStandaloneImporterTest method main.
public static void main(String[] args) {
Logging.init();
try {
SBMLStandaloneImporter sa = new SBMLStandaloneImporter();
for (; ; ) {
/*
JFileChooser jfc = new JFileChooser( new File(System.getProperty("user.dir")));
int returnVal = jfc.showOpenDialog(null);
if(returnVal == JFileChooser.APPROVE_OPTION) {
File f= jfc.getSelectedFile();
BioModel bm = sa.importSBML(f);
System.out.println(bm.getName());
}
*/
BioModel bm = sa.importSBML(new File("samp.sbml"));
System.out.println(bm.getName());
}
} catch (Exception e) {
System.err.println(e.getMessage());
e.printStackTrace();
}
}
Aggregations