ComparisonOperator

class ComparisonOperator(*args)

Base class for comparison operators.

Notes

Comparison operators are defined through the following implementations : Equal, Greater, GreaterOrEqual, Less or LessOrEqual

Methods

__call__(self, a, b)

Call self as a function.

compare(self, a, b)

Compare two values.

getClassName(self)

Accessor to the object’s name.

getId(self)

Accessor to the object’s id.

getImplementation(self)

Accessor to the underlying implementation.

getName(self)

Accessor to the object’s name.

setName(self, name)

Accessor to the object’s name.

__init__(self, \*args)

Initialize self. See help(type(self)) for accurate signature.

compare(self, a, b)

Compare two values.

Parameters
afloat

First input to compare.

bfloat

Second input to compare.

getClassName(self)

Accessor to the object’s name.

Returns
class_namestr

The object class name (object.__class__.__name__).

getId(self)

Accessor to the object’s id.

Returns
idint

Internal unique identifier.

getImplementation(self)

Accessor to the underlying implementation.

Returns
implImplementation

The implementation class.

getName(self)

Accessor to the object’s name.

Returns
namestr

The name of the object.

setName(self, name)

Accessor to the object’s name.

Parameters
namestr

The name of the object.