August'24: Kamaelia is in maintenance mode and will recieve periodic updates, about twice a year, primarily targeted around Python 3 and ecosystem compatibility. PRs are always welcome. Latest Release: 1.14.32 (2024/3/24)

Kamaelia.Util.Comparator.comparator

class comparator(Axon.Component.component)

comparator() -> new comparator component.

Compares items received on "inA" inbox with items received on "inB" inbox. For each pair, outputs True if items compare equal, otherwise False.

Inboxes

Outboxes

Methods defined here

Warning!

combine(self, valA, valB)

Returns result of (valA == valB)

Reimplement this method to change the type of comparison from equality testing.

mainBody(self)

Main loop body.


Feedback

Got a problem with the documentation? Something unclear, could be clearer? Want to help with improving? Constructive criticism, preferably in the form of suggested rewording is very welcome.

Please leave the feedback here, in reply to the documentation thread in the Kamaelia blog.