setPersistent() 공개 메소드

public setPersistent ( bool persistent ) : int
persistent bool
리턴 int
예제 #1
0
 public void test_L3Trigger_setPersistent1()
 {
     Trigger t = new  Trigger(2,4);
       int i = t.setPersistent(false);
       assertTrue( i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE );
       assertTrue( T.getPersistent() == true );
       assertTrue( T.isSetPersistent() == false );
       t = null;
 }
예제 #2
0
 public void test_L3_Event_hasRequiredElements()
 {
     Event e = new  Event(3,1);
       assertEquals( false, e.hasRequiredElements() );
       Trigger t = new  Trigger(3,1);
       t.setInitialValue(true);
       t.setPersistent(true);
       t.setMath(libsbml.parseFormula("true"));
       e.setTrigger(t);
       assertEquals( true, e.hasRequiredElements() );
       e = null;
 }