Changeset 2839


Ignore:
Timestamp:
Jul 23, 2010 11:51:05 AM (9 years ago)
Author:
prsteel
Message:

Added implementation specification to IDataManager based on the body of data/ampl.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/base/plugin.py

    r2773 r2839  
    162162
    163163class IDataManager(Interface):
    164     pass
     164
     165    def initialize(self, filename, **kwds):
     166        """ Prepare to read a data file. """
     167        pass
     168
     169    def open(self):
     170        """ Open the data file. """
     171        pass
     172
     173    def close(self):
     174        """ Close the data file. """
     175        pass
     176
     177    def read(self):
     178        """ Read the data file. """
     179        pass
     180
     181    def process(self):
     182        """ Process the data. """
     183        pass
     184
     185    def clear(self):
     186        """ Reset Plugin. """
     187        pass
    165188
    166189DataManagerFactory = CreatePluginFactory(IDataManager)
Note: See TracChangeset for help on using the changeset viewer.