getId() public method

public getId ( ) : string
return string
コード例 #1
0
 public void test_Event_copyConstructor()
 {
     Event o1 = new Event(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       Event o2 = new Event(o1);
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }
コード例 #2
0
 public void test_Event_assignmentOperator()
 {
     Event o1 = new Event(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       Event o2 = new Event(2,4);
       o2 = o1;
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }
コード例 #3
0
 public void test_Event_clone()
 {
     Event o1 = new Event(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       Event o2 = o1.clone();
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }
コード例 #4
0
ファイル: TestL3Event.cs プロジェクト: mgaldzic/copasi_api
 public void test_L3_Event_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(3,1);
       sbmlns.addNamespaces(xmlns);
       Event e = new  Event(sbmlns);
       assertTrue( e.getTypeCode() == libsbml.SBML_EVENT );
       assertTrue( e.getMetaId() == "" );
       assertTrue( e.getNotes() == null );
       assertTrue( e.getAnnotation() == null );
       assertTrue( e.getLevel() == 3 );
       assertTrue( e.getVersion() == 1 );
       assertTrue( e.getNamespaces() != null );
       assertTrue( e.getNamespaces().getLength() == 2 );
       assertTrue( e.getId() == "" );
       assertTrue( e.getName() == "" );
       assertTrue( e.getUseValuesFromTriggerTime() == true );
       assertEquals( false, e.isSetId() );
       assertEquals( false, e.isSetName() );
       assertEquals( false, e.isSetUseValuesFromTriggerTime() );
       e = null;
 }