public void test_UnitDefinition_parent_create() { Model m = new Model(2, 4); UnitDefinition ud = m.createUnitDefinition(); ListOf lo = m.getListOfUnitDefinitions(); assertTrue(lo == m.getUnitDefinition(0).getParentSBMLObject()); assertTrue(lo == ud.getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_CompartmentType_parent_create() { Model m = new Model(2, 4); CompartmentType ct = m.createCompartmentType(); ListOf lo = m.getListOfCompartmentTypes(); assertTrue(lo == m.getCompartmentType(0).getParentSBMLObject()); assertTrue(lo == ct.getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_SpeciesReference_Reactant_parent_create() { Reaction r = new Reaction(2, 4); SpeciesReference sr = r.createReactant(); ListOf lo = r.getListOfReactants(); assertTrue(lo == r.getReactant(0).getParentSBMLObject()); assertTrue(lo == sr.getParentSBMLObject()); assertTrue(r == lo.getParentSBMLObject()); }
public void test_Reaction_parent_create() { Model m = new Model(2, 4); Reaction r = m.createReaction(); ListOf lo = m.getListOfReactions(); assertTrue(lo == m.getReaction(0).getParentSBMLObject()); assertTrue(lo == r.getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_RateRule_parent_create() { Model m = new Model(2, 4); RateRule r = m.createRateRule(); ListOf lo = m.getListOfRules(); assertTrue(lo == m.getRule(0).getParentSBMLObject()); assertTrue(lo == r.getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_SpeciesReference_Modifier_parent_create() { Reaction r = new Reaction(2, 4); ModifierSpeciesReference sr = r.createModifier(); ListOf lo = r.getListOfModifiers(); assertTrue(lo == sr.getParentSBMLObject()); assertTrue(lo == r.getModifier(0).getParentSBMLObject()); assertTrue(r == lo.getParentSBMLObject()); }
public void test_Parameter_parent_create() { Model m = new Model(2, 4); Parameter p = m.createParameter(); ListOf lo = m.getListOfParameters(); assertTrue(lo == m.getParameter(0).getParentSBMLObject()); assertTrue(lo == p.getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_InitialAssignment_parent_create() { Model m = new Model(2, 4); InitialAssignment ia = m.createInitialAssignment(); ListOf lo = m.getListOfInitialAssignments(); assertTrue(lo == m.getInitialAssignment(0).getParentSBMLObject()); assertTrue(lo == ia.getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_FunctionDefinition_parent_create() { Model m = new Model(2, 4); FunctionDefinition fd = m.createFunctionDefinition(); ListOf lo = m.getListOfFunctionDefinitions(); assertTrue(lo == m.getFunctionDefinition(0).getParentSBMLObject()); assertTrue(lo == fd.getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_Event_parent_create() { Model m = new Model(2, 4); Event e = m.createEvent(); ListOf lo = m.getListOfEvents(); assertTrue(lo == m.getEvent(0).getParentSBMLObject()); assertTrue(lo == e.getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_EventAssignment_parent_create() { Event e = new Event(2, 4); EventAssignment ea = e.createEventAssignment(); ListOf lo = e.getListOfEventAssignments(); assertTrue(lo == e.getEventAssignment(0).getParentSBMLObject()); assertTrue(lo == ea.getParentSBMLObject()); assertTrue(e == lo.getParentSBMLObject()); }
public void test_Species_parent_create() { Model m = new Model(2, 4); Species s = m.createSpecies(); ListOf lo = m.getListOfSpecies(); assertTrue(lo == s.getParentSBMLObject()); assertTrue(lo == m.getSpecies(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_Constraint_parent_create() { Model m = new Model(2, 4); Constraint ct = m.createConstraint(); ListOf lo = m.getListOfConstraints(); assertTrue(lo == m.getConstraint(0).getParentSBMLObject()); assertTrue(lo == ct.getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_SpeciesReference_Product_parent_create_model() { Model m = new Model(2, 4); Reaction r = m.createReaction(); SpeciesReference sr = m.createProduct(); ListOf lo = r.getListOfProducts(); assertTrue(lo == r.getProduct(0).getParentSBMLObject()); assertTrue(lo == sr.getParentSBMLObject()); assertTrue(r == lo.getParentSBMLObject()); }
public void test_Reaction_parent_add() { Reaction ia = new Reaction(2, 4); Model m = new Model(2, 4); ia.setId("k"); m.addReaction(ia); ia = null; ListOf lo = m.getListOfReactions(); assertTrue(lo == m.getReaction(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_CompartmentType_parent_add() { CompartmentType ct = new CompartmentType(2, 4); Model m = new Model(2, 4); ct.setId("ct"); m.addCompartmentType(ct); ct = null; ListOf lo = m.getListOfCompartmentTypes(); assertTrue(lo == m.getCompartmentType(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_Parameter_parent_add() { Parameter ia = new Parameter(2, 4); Model m = new Model(2, 4); ia.setId("p"); m.addParameter(ia); ia = null; ListOf lo = m.getListOfParameters(); assertTrue(lo == m.getParameter(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_Constraint_parent_add() { Constraint ct = new Constraint(2, 4); Model m = new Model(2, 4); ct.setMath(libsbml.parseFormula("a-k")); m.addConstraint(ct); ct = null; ListOf lo = m.getListOfConstraints(); assertTrue(lo == m.getConstraint(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_Unit_parent_create() { UnitDefinition ud = new UnitDefinition(2, 4); Unit u = ud.createUnit(); assertTrue(ud.getNumUnits() == 1); ListOf lo = ud.getListOfUnits(); assertTrue(lo == ud.getUnit(0).getParentSBMLObject()); assertTrue(lo == u.getParentSBMLObject()); assertTrue(ud == lo.getParentSBMLObject()); ud = null; }
public void test_SpeciesReference_Reactant_parent_add() { SpeciesReference sr = new SpeciesReference(2, 4); Reaction r = new Reaction(2, 4); sr.setSpecies("s"); r.addReactant(sr); sr = null; ListOf lo = r.getListOfReactants(); assertTrue(lo == r.getReactant(0).getParentSBMLObject()); assertTrue(r == lo.getParentSBMLObject()); }
public void test_Compartment_parent_add() { Compartment c = new Compartment(2, 4); c.setId("c"); Model m = new Model(2, 4); m.addCompartment(c); c = null; ListOf lo = m.getListOfCompartments(); assertTrue(lo == m.getCompartment(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_UnitDefinition_parent_add() { UnitDefinition ia = new UnitDefinition(2, 4); Model m = new Model(2, 4); ia.setId("u"); ia.createUnit(); m.addUnitDefinition(ia); ia = null; ListOf lo = m.getListOfUnitDefinitions(); assertTrue(lo == m.getUnitDefinition(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_EventAssignment_parent_add() { Event e = new Event(2, 4); EventAssignment ea = new EventAssignment(2, 4); ea.setVariable("c"); ea.setMath(libsbml.parseFormula("K+L")); e.addEventAssignment(ea); ea = null; ListOf lo = e.getListOfEventAssignments(); assertTrue(lo == e.getEventAssignment(0).getParentSBMLObject()); assertTrue(e == lo.getParentSBMLObject()); }
public void test_SpeciesType_parent_add() { SpeciesType ia = new SpeciesType(2, 4); ia.setId("s"); Model m = new Model(2, 4); m.addSpeciesType(ia); ia = null; ListOf lo = m.getListOfSpeciesTypes(); assertTrue(lo == m.getSpeciesType(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_FunctionDefinition_parent_add() { FunctionDefinition fd = new FunctionDefinition(2, 4); Model m = new Model(2, 4); fd.setId("fd"); fd.setMath(libsbml.parseFormula("l")); m.addFunctionDefinition(fd); fd = null; ListOf lo = m.getListOfFunctionDefinitions(); assertTrue(lo == m.getFunctionDefinition(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_InitialAssignment_parent_add() { InitialAssignment ia = new InitialAssignment(2, 4); Model m = new Model(2, 4); ia.setSymbol("c"); ia.setMath(libsbml.parseFormula("9")); m.addInitialAssignment(ia); ia = null; ListOf lo = m.getListOfInitialAssignments(); assertTrue(lo == m.getInitialAssignment(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_SpeciesReference_Modifier_parent_add() { ModifierSpeciesReference sr = new ModifierSpeciesReference(2, 4); sr.setSpecies("s"); Reaction r = new Reaction(2, 4); r.addModifier(sr); sr = null; ListOf lo = r.getListOfModifiers(); assertTrue(lo == r.getModifier(0).getParentSBMLObject()); assertTrue(r == lo.getParentSBMLObject()); }
public void test_Unit_parent_add() { UnitDefinition ud = new UnitDefinition(2, 4); Unit u = new Unit(2, 4); u.setKind(libsbml.UNIT_KIND_MOLE); ud.addUnit(u); u = null; assertTrue(ud.getNumUnits() == 1); ListOf lo = ud.getListOfUnits(); assertTrue(lo == ud.getUnit(0).getParentSBMLObject()); assertTrue(ud == lo.getParentSBMLObject()); ud = null; }
public void test_Rule_parent_add() { Rule ia = new RateRule(2, 4); ia.setVariable("a"); ia.setMath(libsbml.parseFormula("9")); Model m = new Model(2, 4); m.addRule(ia); ia = null; ListOf lo = m.getListOfRules(); assertTrue(lo == m.getRule(0).getParentSBMLObject()); assertTrue(m == lo.getParentSBMLObject()); }
public void test_ListOf_copyConstructor() { ListOf o1 = new ListOf(2, 1); Species s = new Species(2, 1); s.setId("species_1"); o1.append(s); s = null; ListOf o2 = new ListOf(o1); assertTrue(o2.size() == 1); assertTrue(((Species)o2.get(0)).getId() == "species_1"); assertTrue(o2.getParentSBMLObject() == o1.getParentSBMLObject()); o2 = null; o1 = null; }