setInitialValue() public method

public setInitialValue ( bool initialValue ) : int
initialValue bool
return int
Ejemplo n.º 1
0
 public void test_L3Trigger_setInitialValue1()
 {
     Trigger t = new  Trigger(2,4);
       int i = t.setInitialValue(false);
       assertTrue( i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE );
       assertTrue( T.getInitialValue() == true );
       assertTrue( T.isSetInitialValue() == false );
       t = null;
 }
Ejemplo n.º 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;
 }