00001 """
00002 Sover class for use in ANA
00003 """
00004
00005 __copyright__ = """
00006 Copyright 2008 Sean Ross-Ross
00007 """
00008 __license__ = """
00009 This file is part of SLIMpy .
00010
00011 SLIMpy is free software: you can redistribute it and/or modify
00012 it under the terms of the GNU Lesser General Public License as published by
00013 the Free Software Foundation, either version 3 of the License, or
00014 (at your option) any later version.
00015
00016 SLIMpy is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 GNU Lesser General Public License for more details.
00020
00021 You should have received a copy of the GNU Lesser General Public License
00022 along with SLIMpy . If not, see <http://www.gnu.org/licenses/>.
00023 """
00024
00025
00026 from slimpy_base.Environment.InstanceManager import InstanceManager
00027
00028
00029 class solver( object ):
00030 """
00031 Abstract class
00032 """
00033
00034 env = InstanceManager()
00035
00036
00037 def __init__( self ):
00038
00039 pass
00040
00041 def solve( self, A, x ):
00042 """
00043 Not ImplementedError
00044 """
00045 raise NotImplementedError( "Must subclass sovler base class" )
00046
00047 def __str__(self):
00048 return "<SLIMpy abstract solver>"
00049
00050 def __repr__(self):
00051 return "<SLIMpy abstract solver>"
00052