createTrigger() public method

public createTrigger ( ) : Trigger
return Trigger
 public void test_Trigger_ancestor_create()
 {
     Event e = new Event(2,4);
       Trigger ea = e.createTrigger();
       assertTrue( ea.getAncestorOfType(libsbml.SBML_EVENT) == e );
       assertTrue( ea.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( ea.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null );
       Trigger obj = e.getTrigger();
       assertTrue( obj.getAncestorOfType(libsbml.SBML_EVENT) == e );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
       assertTrue( obj.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null );
 }