Skip to content
Snippets Groups Projects
Commit 69debdca authored by Stefano Borini's avatar Stefano Borini
Browse files

Removed KPI from factory registry

parent 4f98470a
No related branches found
No related tags found
1 merge request!120Allow KPIs to be specified as datasource outputs.
......@@ -56,12 +56,6 @@ class FactoryRegistryPlugin(Plugin):
List(IDataSourceFactory),
id=ExtensionPointID.DATA_SOURCE_FACTORIES)
#: A list of the available Key Performance Indicator calculators.
#: It will be populated by plugins.
kpi_calculator_factories = ExtensionPoint(
List(IKPICalculatorFactory),
id=ExtensionPointID.KPI_CALCULATOR_FACTORIES)
#: Notification listeners are pluggable entities that will listen
#: to MCO events and act accordingly.
notification_listener_factories = ExtensionPoint(
......@@ -97,26 +91,6 @@ class FactoryRegistryPlugin(Plugin):
raise KeyError(id)
def kpi_calculator_factory_by_id(self, id):
"""Finds a given kpi factory by means of its id.
The ID is as obtained by the function factory_id() in the
plugin api.
Parameters
----------
id: str
The identifier returned by the factory_id() function.
Raises
------
KeyError: if the entry is not found.
"""
for kpic in self.kpi_calculator_factories:
if kpic.id == id:
return kpic
raise KeyError(id)
def mco_factory_by_id(self, id):
"""Finds a given Multi Criteria Optimizer (MCO) factory by means of
its id. The ID is as obtained by the function factory_id() in the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment