libsbmlcs.Species.setCompartment C# (CSharp) Method

setCompartment() public method

public setCompartment ( string sid ) : int
sid string
return int
        public int setCompartment(string sid)
        {
            int ret = libsbmlPINVOKE.Species_setCompartment(swigCPtr, sid);
            if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            return ret;
        }

Usage Example

コード例 #1
0
 public void test_Species_parent_add()
 {
     Species ia = new Species(2,4);
       ia.setId("s");
       ia.setCompartment("c");
       Model m = new Model(2,4);
       m.addSpecies(ia);
       ia = null;
       ListOf lo = m.getListOfSpecies();
       assertTrue( lo == m.getSpecies(0).getParentSBMLObject() );
       assertTrue( m == lo.getParentSBMLObject() );
 }
All Usage Examples Of libsbmlcs.Species::setCompartment