Axon is built on top of generators with some added context. Whilst the most common version of this a user actually uses is called a component, this is a specialisation of the general concept - a generator with context.
Exercise: Write a class called microprocess (make sure you subclass "object" !) with the following methods:
Clearly we can create a handful of these now:
a = microprocess()
Calling their main method results in us being given a generator:
We can then run these generators in the usual way (though these are fairly boring microprocesses):
>>> for i in a.main():
OK, so we have a mechanism for adding context to generators, and we've called that a microprocess. Let's make it simple to set lots of these running.
This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)
(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved.