Kamaelia docs : Kamaelia.Util.Comparator.Comparator

Kamaelia.Util.Comparator.Comparator

For examples and more explanations, see the module level docs.


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

  • control : NOT USED
  • inbox : NOT USED
  • inB : Source 'B' of items to compare
  • inA : Source 'A' of items to compare

Outboxes

  • outbox : Result of comparison
  • signal : NOT USED

Methods defined here

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 that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

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

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: