getDelay() public method

public getDelay ( ) : Delay
return Delay
Example #1
0
 public void test_Delay_ancestor_create()
 {
     Event e = new Event(2,4);
       Delay ea = e.createDelay();
       assertTrue( ea.getAncestorOfType(libsbml.SBML_EVENT) == e );
       assertTrue( ea.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( ea.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null );
       Delay obj = e.getDelay();
       assertTrue( obj.getAncestorOfType(libsbml.SBML_EVENT) == e );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null );
 }
 public void test_Delay_parent_add()
 {
     Delay d = new Delay(2,4);
       Event e = new Event(2,4);
       e.setDelay(d);
       d = null;
       assertTrue( e == e.getDelay().getParentSBMLObject() );
       e = null;
 }
Example #3
0
 public void test_Delay_ancestor_add()
 {
     Delay d = new Delay(2,4);
       Event e = new Event(2,4);
       e.setDelay(d);
       d = null;
       Delay obj = e.getDelay();
       assertTrue( obj.getAncestorOfType(libsbml.SBML_EVENT) == e );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_MODEL) == null );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       e = null;
 }