Click here to Skip to main content
15,885,164 members
Articles / Desktop Programming / Win32

Visual Modeling of Complex Reactive Systems with Harel UML StateCharts

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
8 Sep 2009LGPL310 min read 43.5K   692   35  
This article presents a commercial-grade cross-platform Harel UML StateChart Open-Source application framework named StateWizard for concurrent, distributed, and real-time reactive system development with simplicity, efficiency, and scalability.
/*
FILE:Player_c.h
NOTE: The State Machine Wizard will add mapping macros between /*{{ and /*}}. Do NOT modify manually.
*/

#ifndef PLAYER_H
#define PLAYER_H

#include "sme.h"


#ifdef __cplusplus
extern "C" {
#endif

/* Pre-declare states that are referenced before they are defined */
SME_BEGIN_STATE_DECLARE(DummyRoot)
SME_COMP_STATE_DECLARE(Player)
SME_COMP_STATE_DECLARE(PlayerUp)
SME_LEAF_STATE_DECLARE(PowerDown)
SME_PSEUDO_STATE_DECLARE(Cond1)
SME_PSEUDO_STATE_DECLARE(Join1)
SME_END_STATE_DECLARE


SME_BEGIN_EVENT_HANDLER(Player,Player)
SME_EVENT_HANDLER_DEC(OnTimer2Proc)
SME_EVENT_HANDLER_DEC(PlayerEntry)
SME_EVENT_HANDLER_DEC(PlayerExit)
SME_EVENT_HANDLER_DEC(PowerDownEntry)
SME_EVENT_HANDLER_DEC(PowerDownExit)
SME_EVENT_HANDLER_DEC(PowerUpEntry)
SME_EVENT_HANDLER_DEC(PowerUpExit)
SME_EVENT_HANDLER_DEC(PlayingEntry)
SME_EVENT_HANDLER_DEC(PlayingExit)
SME_EVENT_HANDLER_DEC(PauseEntry)
SME_EVENT_HANDLER_DEC(PauseExit)
SME_EVENT_HANDLER_DEC(OnPowerDownEXT_EVENT_ID_POWER)
SME_EVENT_HANDLER_DEC(OnPlayingEXT_EVENT_ID_PAUSE_RESUME)
SME_EVENT_HANDLER_DEC(OnPauseEXT_EVENT_ID_PAUSE_RESUME)
SME_EVENT_HANDLER_DEC(OnPowerUpEXT_EVENT_ID_POWER)
SME_EVENT_HANDLER_DEC(Cond1_func)
SME_EVENT_HANDLER_DEC(CondAct1)
SME_EVENT_HANDLER_DEC(CondAct2)
SME_EVENT_HANDLER_DEC(CondActElse)
SME_EVENT_HANDLER_DEC(JoinAct)
SME_END_EVENT_HANDLER(Player,Player)

BOOL Guard1_func(SME_OBJ_T *pDestApp, SME_EVENT_T *pEvent);
BOOL GuardTimer2_func(SME_OBJ_T *pDestApp, SME_EVENT_T *pEvent);


#ifdef __cplusplus
}
#endif

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions