- 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/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++;
}
}
}