Oh, wow...that is so damned cool.
It seems like these few lines give you introspection into any Kamaelia 
process:

from Kamaelia.Util.Introspector import Introspector
from Kamaelia.Visualisation.Axon.AxonVisualiserServer import AxonVisualiser

# Start the introspector and connect to a local visualiser
Pipeline(
    Introspector(),
    TCPClient("127.0.0.1", 1500),
).activate()

And clicking on nodes/connectors reports out to the console.

This is so great. Wow.

Gloria
> The Introspector is a bit of a special component - these days it is
> actually part of Axon (the core system that implements the whole
> Components, Inboxes, Outboxes, etc business):
>
>    http://www.kamaelia.org/Docs/Axon/Axon.Introspector.html
>
> It is part of Axon because it rummages around inside the Axon scheduler
> (ie. introspects) to find out the state of the system (what components
> there are and how they are wired together). It sends this information out
> of its "outbox" outbox in the form of commands describing how to construct
> a topology of nodes and linkages that mirrors what it has introspected.
>
> Kamaelia contains some topology visualising components that understand
> these commands and can generate an animated graphical display using
> pygame.
>
> You should find an app in Kamaelia/Tools/AxonVisualiser.py that will
> accept these commands on a TCP socket ... hence putting the introspector
> in a pipeline with a TCPClient() - so it can connect to a running
> AxonVisualiser.py and send the data to it.
>
> It has nothing to do with the SimpleServer - because the idea is that the
> Introspector is something (nearly) completely separate in the system that
> is observing what is going on. The SimpleServer is part of the system
> under observation.
>
> Run up the AxonVisualiser:
>
>   $> python AxonVisualiser.py --port=1500
>
> Leave it running, then run the fortune cookie system. You'll see blobs
> appear.
>
> More info here: http://www.kamaelia.org/AxonVisualiser
>
>
> Matt
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"kamaelia" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/kamaelia?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to