def getModelConfig(self): implementation_type = self.getImplementationType() if implementation_type == ErtImplType.FIELD: return self.getFieldModelConfig() elif implementation_type == ErtImplType.GEN_DATA: return self.getDataModelConfig() elif implementation_type == ErtImplType.GEN_KW: return self.getKeywordModelConfig() elif implementation_type == ErtImplType.SUMMARY: return SummaryConfig.createCReference( self.getPointerReference(), parent=self ) elif implementation_type == ErtImplType.EXT_PARAM: return ExtParamConfig.createCReference( self.getPointerReference(), parent=self ) else: print( ( "[EnkfConfigNode::getModelConfig()] " "Unhandled implementation model type: %i" ) % implementation_type )
def getSummaryModelConfig(self): """@rtype: SummaryConfig""" return SummaryConfig.createCReference(self._get_ref(), parent=self)