Package fuzzy :: Package operator :: Module Const :: Class Const
[hide private]
[frames] | no frames]

Class Const

source code


Special operator which returns a constant value.

Instance Methods [hide private]
 
__init__(self, value)
Constructor.
source code
float
__call__(self)
Return stored constant value.
source code
string
__repr__(self)
Return representation of instance.
source code

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

Instance Variables [hide private]
float value
value returned at call of __call__().
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, value)
(Constructor)

source code 

Constructor.

Parameters:
  • value (float) - value returned at call of __call__().
Overrides: object.__init__

__call__(self)
(Call operator)

source code 

Return stored constant value.

Returns: float
result of operator calculation
Raises:
Overrides: Operator.Operator.__call__

__repr__(self)
(Representation operator)

source code 

Return representation of instance.

Returns: string
representation of instance
Overrides: object.__repr__