createInitialAssignment() public method

public createInitialAssignment ( ) : InitialAssignment
return InitialAssignment
Ejemplo n.º 1
0
 public void test_InitialAssignment_ancestor_create()
 {
     Model m = new Model(2,4);
       InitialAssignment ia = m.createInitialAssignment();
       ListOf lo = m.getListOfInitialAssignments();
       assertTrue( ia.getAncestorOfType(libsbml.SBML_MODEL) == m );
       assertTrue( ia.getAncestorOfType(libsbml.SBML_LIST_OF) == lo );
       assertTrue( ia.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( ia.getAncestorOfType(libsbml.SBML_EVENT) == null );
       InitialAssignment obj = m.getInitialAssignment(0);
       assertTrue( obj.getAncestorOfType(libsbml.SBML_MODEL) == m );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_LIST_OF) == lo );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_EVENT) == null );
 }
 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() );
 }
Ejemplo n.º 3
0
 public void test_Model_createInitialAssignment()
 {
     Model m = new  Model(2,2);
       InitialAssignment p = m.createInitialAssignment();
       assertTrue( m.getNumInitialAssignments() == 1 );
       assertTrue( (p).getLevel() == 2 );
       assertTrue( (p).getVersion() == 2 );
       m = null;
 }