Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SignalTrans< T > Class Template Reference

#include <SignalTrans.h>

Inheritance diagram for SignalTrans< T >:

List of all members.


Detailed Description

template<class T>
class SignalTrans< T >

causes a transition if a DataEvent from stateSignalEGID occurs with a specific value

This allows a state node to signal a transition to another state in a clean symbolic way. Only the transition itself needs to know the address of the destination node.

Definition at line 16 of file SignalTrans.h.


Public Member Functions

 SignalTrans (StateNode *destination, const T &value)
 Constructor.
 SignalTrans (const std::string &name, StateNode *destination, const T &value)
 Constructor.
virtual void DoStart ()
 By default, merely adds to the reference counter (through AddReference()); Note you should still call this from your overriding methods.
virtual void processEvent (const EventBase &event)
 By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.

Protected Member Functions

 SignalTrans (const std::string &classname, const std::string &instancename, StateNode *destination, const T &value)
 Constructor.

Protected Attributes

val
 value to compare against

Constructor & Destructor Documentation

template<class T>
SignalTrans< T >::SignalTrans ( StateNode destination,
const T &  value 
) [inline]

Constructor.

Definition at line 19 of file SignalTrans.h.

template<class T>
SignalTrans< T >::SignalTrans ( const std::string &  name,
StateNode destination,
const T &  value 
) [inline]

Constructor.

Definition at line 24 of file SignalTrans.h.

template<class T>
SignalTrans< T >::SignalTrans ( const std::string &  classname,
const std::string &  instancename,
StateNode destination,
const T &  value 
) [inline, protected]

Constructor.

Definition at line 42 of file SignalTrans.h.


Member Function Documentation

template<class T>
virtual void SignalTrans< T >::DoStart (  )  [inline, virtual]

By default, merely adds to the reference counter (through AddReference()); Note you should still call this from your overriding methods.

Reimplemented from BehaviorBase.

Definition at line 28 of file SignalTrans.h.

template<class T>
virtual void SignalTrans< T >::processEvent ( const EventBase  )  [inline, virtual]

By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.

Reimplemented from BehaviorBase.

Definition at line 34 of file SignalTrans.h.


Member Data Documentation

template<class T>
T SignalTrans< T >::val [protected]

value to compare against

Definition at line 47 of file SignalTrans.h.

Referenced by SignalTrans< T >::processEvent().


The documentation for this class was generated from the following file:

Tekkotsu v4.0
Generated Thu Nov 22 00:58:41 2007 by Doxygen 1.5.4