libsbmlcs.CompartmentType.setId C# (CSharp) Method

setId() public method

public setId ( string sid ) : int
sid string
return int
        public new int setId(string sid)
        {
            int ret = libsbmlPINVOKE.CompartmentType_setId(swigCPtr, sid);
            if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            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.CompartmentType::setId