BioSIMI-Python/modules/SimpleModel.py
def createNewUnitDefinition(self, uid, ukind, exponent, scale, multiplier):
        ''' 
        Creates a new UnitDefinition inside the 
        Model with the given attributes and returns a pointer to the object created
        '''
        model = self.getModel()
        unitdef = model.createUnitDefinition()
        check(unitdef, 'create unit definition')
        check(unitdef.setId(uid), 'set unit definition id')
        unit = unitdef.createUnit()
        check(unit, 'create unit on unitdef')
        check(unit.setKind(ukind), 'set unit kind')
        check(unit.setExponent(exponent), 'set unit exponent')
        check(unit.setScale(scale), 'set unit scale')
        check(unit.setMultiplier(multiplier), 'set unit multiplier')
        return unitdef
 
        Creates a new UnitDefinition inside the 
        Model with the given attributes and returns a pointer to the object created
        
Creates a new UnitDefinition inside the
Model with the given attributes and returns a pointer to the object created
Creates a new UnitDefinition inside the Model with the given attributes and returns a pointer to the object created
def createNewUnitDefinition(self, uid, ukind, exponent, scale, multiplier):
        model = self.getModel()
        unitdef = model.createUnitDefinition()
        check(unitdef, 'create unit definition')
        check(unitdef.setId(uid), 'set unit definition id')
        unit = unitdef.createUnit()
        check(unit, 'create unit on unitdef')
        check(unit.setKind(ukind), 'set unit kind')
        check(unit.setExponent(exponent), 'set unit exponent')
        check(unit.setScale(scale), 'set unit scale')
        check(unit.setMultiplier(multiplier), 'set unit multiplier')
        return unitdef
def createNewUnitDefinition ( self , uid , ukind , exponent , scale , multiplier ) : model = self . getModel ( ) unitdef = model . createUnitDefinition ( ) check ( unitdef , 'create unit definition' ) check ( unitdef . setId ( uid ) , 'set unit definition id' ) unit = unitdef . createUnit ( ) check ( unit , 'create unit on unitdef' ) check ( unit . setKind ( ukind ) , 'set unit kind' ) check ( unit . setExponent ( exponent ) , 'set unit exponent' ) check ( unit . setScale ( scale ) , 'set unit scale' ) check ( unit . setMultiplier ( multiplier ) , 'set unit multiplier' ) return unitdef
Creates a new UnitDefinition inside the
Model with the given attributes and returns a pointer to the object created
Creates a new UnitDefinition inside the Model with the given attributes and returns a pointer to the object created
''' 
        Creates a new UnitDefinition inside the 
        Model with the given attributes and returns a pointer to the object created
        '''
self
uid
ukind
exponent
scale
multiplier