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__(a, b)
compare(a, b) Compare two values.
getClassName() Accessor to the object’s name.
getId() Accessor to the object’s id.
getImplementation(*args) Accessor to the underlying implementation.
getName() Accessor to the object’s name.
setName(name) Accessor to the object’s name.
__init__(*args)
compare(a, b)

Compare two values.

Parameters:

a : float

First input to compare.

b : float

Second input to compare.

getClassName()

Accessor to the object’s name.

Returns:

class_name : str

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

getId()

Accessor to the object’s id.

Returns:

id : int

Internal unique identifier.

getImplementation(*args)

Accessor to the underlying implementation.

Returns:

impl : Implementation

The implementation class.

getName()

Accessor to the object’s name.

Returns:

name : str

The name of the object.

setName(name)

Accessor to the object’s name.

Parameters:

name : str

The name of the object.