| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
EventLogger Class Reference#include <EventLogger.h>
Inheritance diagram for EventLogger: ![]() Detailed Descriptionallows logging of events to the console or a file, also provides some remote logging facilities over logSocket, required by Storyboard toolUsers' behaviors can call logMessage(), logImage(), and logWebcam() to insert the corresponding data into logSocket via an XML 'event' node. The protocol used with logSocket is:
Each of those commands should be terminated with a newline - i.e. one command per line
After a
After a All other commands give no direct response - listen can be executed before the specified StateNode is yet running, and ignore doesn't care whether or not the specified StateNode was actually being listened for. The format of the model is: <!DOCTYPE model [ <!ELEMENT model (state*, transition*)> <!ELEMENT state (state*, transition*)> <!ELEMENT transition (source+, dest+)> <!ELEMENT source (#PCDATA)> <!ELEMENT dest (#PCDATA)> <!ATTLIST state id CDATA #REQUIRED> <!ATTLIST state class CDATA #REQUIRED> <!ATTLIST transition id CDATA #REQUIRED> <!ATTLIST transition class CDATA #REQUIRED> ]> The format of status updates following a listen command is: <!DOCTYPE event [ <!ELEMENT event (fire*, statestart*, statestop*)> <!ELEMENT fire (EMPTY)> <!ELEMENT statestart (EMPTY)> <!ELEMENT statestop (EMPTY)> <!ATTLIST fire id CDATA #REQUIRED> <!ATTLIST fire time CDATA #REQUIRED> <!ATTLIST statestart id CDATA #REQUIRED> <!ATTLIST statestart time CDATA #REQUIRED> <!ATTLIST statestop id CDATA #REQUIRED> <!ATTLIST statestop time CDATA #REQUIRED> ]> The 'event' node is also used for the results of logImage(), logMessage(), and logWebcam().
Definition at line 77 of file EventLogger.h.
Member Function Documentationwrites an xmlNode out over logSocket, freeing node when complete uses doc if provided, otherwise makes a new temporary one which is then deleted again before the function returns Definition at line 447 of file EventLogger.cc. Referenced by dumpQueuedEvents(), and spider().
if there is a remote monitor listening for state machine transitions, this will send them over this is called by the StateMachineListener, which is subscribed to only those machines which have been requested by the remote monitor Definition at line 375 of file EventLogger.cc. Referenced by EventLogger::StateMachineListener::processEvent(). dumps all of the transitions and subnodes of a given statenode if parent is NULL, will dump the results over logSocket, otherwise adds the xml tree as a child of parent Definition at line 238 of file EventLogger.cc. Referenced by runCommand().
The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Fri May 11 20:08:05 2007 by Doxygen 1.4.7 |