Location: Metabolic Component Library @ 38fe44af096f / CellML-source / CellMLTools / src / componentlibrary / RComponentTest.java

Author:
Randall Britten <r.britten@auckland.ac.nz>
Date:
2013-04-17 15:40:27+12:00
Desc:
Trivial whitespace changes, and moved import to be adjacent to peer import.
Permanent Source URI:
https://models.cellml.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/38fe44af096fb53d9b250091fe0563b33b5f778f/CellML-source/CellMLTools/src/componentlibrary/RComponentTest.java

package componentlibrary;

import java.util.List;
import java.util.TreeMap;


/* Get additional information for the component from the CellML and run the test. */
public class RComponentTest {
	
	public static void main(String[] args) throws Exception{
		TreeMap<String, RComponent> cMap = RComponentImporter.readComponentsFromCSV();
		int count = 1;
		for (RComponent c: cMap.values()){
			RCellMLComponent rcc = new RCellMLComponent(c);
			rcc.print(count);
			List<String> vars = rcc.getVariablesFromKineticsComponent();
			for (String var: vars){
				System.out.println(var);
			}
			System.out.println("\nValidation Errors: " + rcc.getNValidationErrors());
			
			//if (count == 1){break;}
			count++;
		}
	}
}