ComparisonOperator¶
- class ComparisonOperator(*args)¶
Base class for comparison operators.
Methods
compare
(a, b)Compare two values.
Accessor to the object's name.
getId
()Accessor to the object's id.
Accessor to the underlying implementation.
getName
()Accessor to the object's name.
setName
(name)Accessor to the object's name.
Notes
Comparison operators are defined through the following implementations :
Equal
,Greater
,GreaterOrEqual
,Less
orLessOrEqual
- __init__(*args)¶
- compare(a, b)¶
Compare two values.
- Parameters:
- afloat
First input to compare.
- bfloat
Second input to compare.
- getClassName()¶
Accessor to the object’s name.
- Returns:
- class_namestr
The object class name (object.__class__.__name__).
- getId()¶
Accessor to the object’s id.
- Returns:
- idint
Internal unique identifier.
- getImplementation()¶
Accessor to the underlying implementation.
- Returns:
- implImplementation
A copy of the underlying implementation object.
- getName()¶
Accessor to the object’s name.
- Returns:
- namestr
The name of the object.
- setName(name)¶
Accessor to the object’s name.
- Parameters:
- namestr
The name of the object.