Search in sources :

Example 1 with SBMLStandaloneImporter

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();
    }
}
Also used : BioModel(cbit.vcell.biomodel.BioModel) SBMLStandaloneImporter(org.vcell.sbml.vcell.SBMLStandaloneImporter) File(java.io.File)

Aggregations

BioModel (cbit.vcell.biomodel.BioModel)1 File (java.io.File)1 SBMLStandaloneImporter (org.vcell.sbml.vcell.SBMLStandaloneImporter)1