Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Arc_t< EVENT > Class Template Reference

Represents an Arc of an FSA. More...

#include <fsa.H>

List of all members.

Public Member Functions

 Arc_t ()
 Arc_t (const EVENT &e, CallBack_t< EVENT > *c)
 Arc_t (Guard_t< EVENT > *g, CallBack_t< EVENT > *c)
int execute (State_t< EVENT > *&s, const EVENT &e, State_t< EVENT > *start) const
int match (const EVENT &e) const
int guarded () const
const Guard_t< EVENT > * guard () const
const State_t< EVENT > * next () const
const EVENT & event () const
const CallBack_t< EVENT > * callback () const
CallBack_t< EVENT > * get_callback ()
int operator== (const Arc_t< EVENT > &a) const

Protected Attributes

CallBack_t< EVENT > * _c
Guard_t< EVENT > * _guard


Detailed Description

template<class EVENT>
class Arc_t< EVENT >

Represents an Arc of an FSA.

An Arc is traversed when its specific Event is generated. Traversing an Arc results in the Callback associated with the Arc being executed. The next state of the FSA is returned by the callback.

Definition at line 198 of file fsa.H.


Constructor & Destructor Documentation

template<class EVENT>
Arc_t< EVENT >::Arc_t  )  [inline]
 

Definition at line 202 of file fsa.H.

template<class EVENT>
Arc_t< EVENT >::Arc_t const EVENT &  e,
CallBack_t< EVENT > *  c
[inline]
 

Definition at line 203 of file fsa.H.

template<class EVENT>
Arc_t< EVENT >::Arc_t Guard_t< EVENT > *  g,
CallBack_t< EVENT > *  c
[inline]
 

Definition at line 205 of file fsa.H.


Member Function Documentation

template<class EVENT>
const CallBack_t<EVENT>* Arc_t< EVENT >::callback  )  const [inline]
 

Definition at line 218 of file fsa.H.

References Arc_t< EVENT >::_c.

template<class EVENT>
const EVENT& Arc_t< EVENT >::event  )  const [inline]
 

Definition at line 217 of file fsa.H.

References Arc_t< EVENT >::_guard.

template<class EVENT>
int Arc_t< EVENT >::execute State_t< EVENT > *&  s,
const EVENT &  e,
State_t< EVENT > *  start
const [inline]
 

Definition at line 207 of file fsa.H.

References Arc_t< EVENT >::_c.

template<class EVENT>
CallBack_t<EVENT>* Arc_t< EVENT >::get_callback  )  [inline]
 

Definition at line 219 of file fsa.H.

References Arc_t< EVENT >::_c.

template<class EVENT>
const Guard_t<EVENT>* Arc_t< EVENT >::guard  )  const [inline]
 

Definition at line 215 of file fsa.H.

References Arc_t< EVENT >::_guard.

template<class EVENT>
int Arc_t< EVENT >::guarded  )  const [inline]
 

Definition at line 213 of file fsa.H.

References Arc_t< EVENT >::_guard.

Referenced by State_t< EVENT >::operator+=().

template<class EVENT>
int Arc_t< EVENT >::match const EVENT &  e  )  const [inline]
 

Definition at line 211 of file fsa.H.

References Arc_t< EVENT >::_guard.

template<class EVENT>
const State_t<EVENT>* Arc_t< EVENT >::next  )  const [inline]
 

Definition at line 216 of file fsa.H.

References Arc_t< EVENT >::_c.

template<class EVENT>
int Arc_t< EVENT >::operator== const Arc_t< EVENT > &  a  )  const [inline]
 

Definition at line 221 of file fsa.H.

References Arc_t< EVENT >::_c, and Arc_t< EVENT >::_guard.


Member Data Documentation

template<class EVENT>
CallBack_t<EVENT>* Arc_t< EVENT >::_c [protected]
 

Definition at line 227 of file fsa.H.

Referenced by Arc_t< EVENT >::callback(), Arc_t< EVENT >::execute(), Arc_t< EVENT >::get_callback(), Arc_t< EVENT >::next(), and Arc_t< EVENT >::operator==().

template<class EVENT>
Guard_t<EVENT>* Arc_t< EVENT >::_guard [protected]
 

Definition at line 228 of file fsa.H.

Referenced by Arc_t< EVENT >::event(), Arc_t< EVENT >::guard(), Arc_t< EVENT >::guarded(), Arc_t< EVENT >::match(), and Arc_t< EVENT >::operator==().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:44:15 2006 for jot by  doxygen 1.4.4