BioSIMI-Python/modules/SimpleModel.py
def createNewCompartment(self, cId, cName, cSize, cUnits, cConstant):
        '''
        Creates a new Compartment in the Model and returns a pointer to the object created
        '''
        model = self.getModel()
        check(model,'retreived model object')
        comp_obj = model.createCompartment()
        check(comp_obj, 'Create comp_obj compartment')
        check(comp_obj.setId(cId), 'Set comp_obj id')
        check(comp_obj.setName(cName), 'Set comp_obj name')
        check(comp_obj.setSize(cSize), 'set comp_obj size')
        check(comp_obj.setUnits(cUnits), 'set comp_obj units')
        check(comp_obj.setConstant(cConstant), 'set comp_obj constant')
        return comp_obj

        Creates a new Compartment in the Model and returns a pointer to the object created
        
Creates a new Compartment in the Model and returns a pointer to the object created
Creates a new Compartment in the Model and returns a pointer to the object created
def createNewCompartment(self, cId, cName, cSize, cUnits, cConstant):
        model = self.getModel()
        check(model,'retreived model object')
        comp_obj = model.createCompartment()
        check(comp_obj, 'Create comp_obj compartment')
        check(comp_obj.setId(cId), 'Set comp_obj id')
        check(comp_obj.setName(cName), 'Set comp_obj name')
        check(comp_obj.setSize(cSize), 'set comp_obj size')
        check(comp_obj.setUnits(cUnits), 'set comp_obj units')
        check(comp_obj.setConstant(cConstant), 'set comp_obj constant')
        return comp_obj
def createNewCompartment ( self , cId , cName , cSize , cUnits , cConstant ) : model = self . getModel ( ) check ( model , 'retreived model object' ) comp_obj = model . createCompartment ( ) check ( comp_obj , 'Create comp_obj compartment' ) check ( comp_obj . setId ( cId ) , 'Set comp_obj id' ) check ( comp_obj . setName ( cName ) , 'Set comp_obj name' ) check ( comp_obj . setSize ( cSize ) , 'set comp_obj size' ) check ( comp_obj . setUnits ( cUnits ) , 'set comp_obj units' ) check ( comp_obj . setConstant ( cConstant ) , 'set comp_obj constant' ) return comp_obj
Creates a new Compartment in the Model and returns a pointer to the object created
Creates a new Compartment in the Model and returns a pointer to the object created
'''
        Creates a new Compartment in the Model and returns a pointer to the object created
        '''
self
cId
cName
cSize
cUnits
cConstant