fuzzy :: Variable :: Variable :: Class Variable
[hide private]
[frames] | no frames]

Class Variable

source code


Base class for any kind of fuzzy variable. Returns as output the previous input value.

Instance Methods [hide private]
 
__init__(self, description='', min=0.0, max=1.0, unit='', adjectives=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
setValue(self, value)
Just store the value.
source code
 
getValue(self)
Return previous input value.
source code
 
reset(self)
Reset meberships of adjectives for new calculation step.
source code
 
getName(self, system)
Lookup the name given this variable in the given system
source code
string
__repr__(self)
Return representation of instance.
source code
 
_repr_params(self, params)
Helper for representation of instance.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
string description
Description of the fuzzy variable
float max
maximum value (not strictly enforced, but useful for some external tools)
float min
minimum value (not strictly enforced, but useful for some external tools)
string unit
Unit of the values
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, description='', min=0.0, max=1.0, unit='', adjectives=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • description (string) - Description of the fuzzy variable
  • min (float) - minimum value (not strictly enforced, but useful for some external tools)
  • max (float) - maximum value (not strictly enforced, but useful for some external tools)
  • unit (string) - Unit of the values
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Return representation of instance.

Returns: string
representation of instance
Overrides: object.__repr__

_repr_params(self, params)

source code 

Helper for representation of instance.

Add all own params to given list in params.