libsbmlcs.Model.addCompartmentType C# (CSharp) Method

addCompartmentType() public method

public addCompartmentType ( CompartmentType ct ) : int
ct CompartmentType
return int
        public int addCompartmentType(CompartmentType ct)
        {
            int ret = libsbmlPINVOKE.Model_addCompartmentType(swigCPtr, CompartmentType.getCPtr(ct));
            return ret;
        }

Usage Example

コード例 #1
0
 public void test_CompartmentType_parent_add()
 {
     CompartmentType ct = new CompartmentType(2,4);
       Model m = new Model(2,4);
       ct.setId("ct");
       m.addCompartmentType(ct);
       ct = null;
       ListOf lo = m.getListOfCompartmentTypes();
       assertTrue( lo == m.getCompartmentType(0).getParentSBMLObject() );
       assertTrue( m == lo.getParentSBMLObject() );
 }
All Usage Examples Of libsbmlcs.Model::addCompartmentType
Model