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)

Axon.Handle.Handle

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


class Handle(Axon.ThreadedComponent.threadedcomponent)

Methods defined here

__init__(self, someComponent)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

_get(self)

childrenDone(self)

Unplugs any children that have terminated, and returns true if there are no running child components left (ie. their microproceses have finished)

get(self[, boxname])

Return an item of data sent to an outbox of the wrapped component.

This method is non blocking and always returns immediately. If there is no data to return, then the exception Queue.Empty is thrown

Arguments:

  • boxname -- (optional) the name of the outbox of the wrapped component from which the data should be collected (default="outbox", should be either "outbox" or "signal")

main(self)

Main loop.

put(self, *args)

Send an item of data to one of the inboxes of the wrapped component.

The item of data is queued and sent to the inbox as soon as possible.

Arguments:

  • the item of data
  • the name of the inbox it is destined for (either "inbox" or "control")

Methods inherited from Axon.ThreadedComponent.threadedcomponent :

Methods inherited from Axon.Component.component :

Methods inherited from Axon.Microprocess.microprocess :

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, 09 Dec 2009 at 04:00:25 UTC/GMT