getId() публичный Метод

public getId ( ) : string
Результат string
Пример #1
0
 public void test_CompartmentType_copyConstructor()
 {
     CompartmentType o1 = new CompartmentType(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       CompartmentType o2 = new CompartmentType(o1);
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }
Пример #2
0
 public void test_CompartmentType_assignmentOperator()
 {
     CompartmentType o1 = new CompartmentType(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       CompartmentType o2 = new CompartmentType(2,4);
       o2 = o1;
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }