alphatwirl.loop.ReaderComposite

class alphatwirl.loop.ReaderComposite[source]

A composite of event readers”

This class is a composite in the composite pattern.

Examples of event readers are instances of Summarizer and this class.

When event() is called, it calls event() of each reader in the order in which the readers are added. If a reader returns False, it won’t call the remaining readers.

__init__()[source]

Methods

__init__()
add(reader)
begin(event)
end()
event(event)
merge(other)