Ignore:
Timestamp:
Oct 28, 2009 8:14:26 PM (11 years ago)
Author:
wehart
Message:

Rework of Coopr to use the new PyUtilib? package decomposition.

NOTE: to use Coopr with this update, we need to work with a new version of coopr_install.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coopr/opt/parallel/solver.py

    r1296 r1768  
    1212__all__ = ['AsynchronousSolverManager', 'SolverManagerRegistration', 'SolverManagerFactory']
    1313
    14 import pyutilib.plugin
     14import pyutilib.plugin.core
     15import pyutilib.plugin.config
    1516from manager import *
    1617
     
    1920# An interface for AsynchronousSolverManager objects
    2021#
    21 class ISolverManager(pyutilib.plugin.Interface):
     22class ISolverManager(pyutilib.plugin.core.Interface):
    2223    pass
    2324
    2425
    25 class ISolverManagerRegistration(pyutilib.plugin.Interface):
     26class ISolverManagerRegistration(pyutilib.plugin.core.Interface):
    2627
    2728    def create(self, name=None):
     
    3334
    3435def SolverManagerFactory(name=None, instance_name=None):
    35     ep = pyutilib.plugin.ExtensionPoint(ISolverManagerRegistration)
     36    ep = pyutilib.plugin.core.ExtensionPoint(ISolverManagerRegistration)
    3637    if name is None:
    3738        return map(lambda x:x.name, ep())
     
    4243
    4344
    44 class SolverManagerRegistration(pyutilib.plugin.Plugin):
     45class SolverManagerRegistration(pyutilib.plugin.core.Plugin):
    4546
    46     pyutilib.plugin.implements(ISolverManagerRegistration)
     47    pyutilib.plugin.core.implements(ISolverManagerRegistration)
    4748
    4849    def __init__(self, type, cls):
     
    6162
    6263
    63 class AsynchronousSolverManager(AsynchronousActionManager, pyutilib.plugin.ManagedPlugin):
     64class AsynchronousSolverManager(AsynchronousActionManager, pyutilib.plugin.config.ManagedPlugin):
    6465
    65     pyutilib.plugin.implements(ISolverManager)
     66    pyutilib.plugin.core.implements(ISolverManager)
    6667
    6768    def __init__(self, **kwds):
    6869        AsynchronousActionManager.__init__(self)
    69         pyutilib.plugin.ManagedPlugin.__init__(self, **kwds)
     70        pyutilib.plugin.config.ManagedPlugin.__init__(self, **kwds)
    7071
    7172    def solve(self, *args, **kwds):
Note: See TracChangeset for help on using the changeset viewer.