Home | Trees | Indices | Help |
|
---|
|
1 # -*- coding: utf-8 -*- 2 # 3 # Copyright (C) 2009 Rene Liebscher 4 # 5 # This program is free software; you can redistribute it and/or modify it under 6 # the terms of the GNU Lesser General Public License as published by the Free 7 # Software Foundation; either version 3 of the License, or (at your option) any 8 # later version. 9 # 10 # This program is distributed in the hope that it will be useful, but WITHOUT 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 12 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 13 # details. 14 # 15 # You should have received a copy of the GNU Lesser General Public License 16 # along with this program; if not, see <http://www.gnu.org/licenses/>. 17 # 18 """Special operator class which gets it value from a fuzzy adjective.""" 19 __revision__ = "$Id: Input.py,v 1.16 2010-10-29 19:24:41 rliebscher Exp $" 20 21 from fuzzy.operator.Operator import Operator 22 24 """Special operator which gets it value from a fuzzy adjective. 25 26 @ivar adjective: from which adjective get the membership value. 27 @type adjective: L{fuzzy.Adjective.Adjective} 28 """ 2931 """Constructor. 32 33 @param adjective: from which adjective get the membership value. 34 @type adjective: L{fuzzy.Adjective.Adjective} 35 """ 36 super(Input, self).__init__() 37 self.adjective = adjective38 4244 """Return representation of instance. 45 46 @return: representation of instance 47 @rtype: string 48 """ 49 return "%s.%s(%s)" % (self.__class__.__module__, self.__class__.__name__, object.__repr__(self.adjective))50
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Apr 5 22:26:13 2013 | http://epydoc.sourceforge.net |