Prev: Defining the state machine's objects
Next: Include files
All init, entry, exit, and transition actions of my
state machine are implemented in "myact.c" file and declaring in "myact.h" file. These files also includes transition guard and branch selection functions.
Initial action of "my" state machine
void
{
MySm *realMe = ((MySm *)(me));
realMe->x = realMe->y = 0;
}
#define RKH_TR_FWK_OBJ(obj_)
Entry symbol table for memory object.
#define RKH_TR_FWK_SIG(stateObj_)
Entry symbol table for event signal.
Describes the SMA (active object in UML).
Effect actions of "my" state machine
void
{
(void)pe;
((MySm *)(me))->x = 1;
}
void
{
(void)pe;
((MySm *)(me))->y = 2;
}
void
{
(void)pe;
((MySm *)(me))->y = 1;
}
void
{
(void)me;
(void)pe;
}
void
{
(void)me;
(void)pe;
}
void
{
(void)me;
(void)pe;
}
void rkh_fwk_exit(void)
Exit the RKH framework.
Represents events without parameters.
Entry actions of "my" state machine
void
{
((MySm *)(me))->x = 1;
}
void
{
((MySm *)(me))->x = 2;
}
void
{
((MySm *)(me))->x = 3;
}
void
{
((MySm *)(me))->y = 0;
}
Exit actions of "my" state machine
Transition guard functions of "my" state machine
Branch selection functions of "my" state machine
rbool_t
{
(void)pe;
}
rbool_t
{
(void)pe;
}
rbool_t
{
(void)pe;
}
rbool_t
{
(void)pe;
}
rbool_t
{
(void)pe;
return (((MySm *)(me))->x == 2 || ((MySm *)(me))->x == 3) ?
}
#define RKH_GFALSE
This values are retrived by guard functions.
Prev: Defining the state machine's objects
Next: Include files