扩展点

(类来自 pyomo.common.plugin_base)

class pyomo.common.plugin_base.ExtensionPoint(interface)[source]

基础类:object

__init__(interface)[源代码]

方法

__init__(interface)

extensions([all, key])

service([key, all])

返回与此扩展点接口匹配的唯一服务。

成员文档

service(key=None, all=False)[source]

返回与此扩展点接口匹配的唯一服务。如果没有服务匹配指定的键,或者有多个服务匹配,则会抛出异常。