createDelay() public method

public createDelay ( ) : Delay
return Delay
Example #1
0
 public void test_L3_Event_hasRequiredAttributes()
 {
     Event e = new  Event(3,1);
       assertEquals( true, e.hasRequiredAttributes() );
       Delay d = e.createDelay();
       assertEquals( false, e.hasRequiredAttributes() );
       e.setUseValuesFromTriggerTime(true);
       assertEquals( true, e.hasRequiredAttributes() );
       e = null;
 }
Example #2
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 );
 }