April 2024 - This site, and Kamaelia are being updated. There is significant work needed, and PRs are welcome.

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.