Click here to Skip to main content
15,885,278 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.
#include "SingleState.h"

#include "sme.h"
#include <stdio.h>
#include "sme_cross_platform.h"

/* Test Case: A state machine with a single state. */

/* Define Root (Composite-state) of Player*/
SME_BEGIN_ROOT_COMP_STATE_DEF(SingleState, SingleStateEntry, SingleStateExit)
SME_END_STATE_DEF

//SME_BEGIN_LEAF_STATE_DEF(SingleStateLeaf, SingleState, SingleStateEntry, SingleStateExit)
//SME_END_STATE_DEF

SME_OBJ_DEF(SingleState1, SingleState)
SME_OBJ_DEF(SingleState2, SingleState)

BOOL SingleStateEntry(SME_OBJ_T *pDestApp, SME_EVENT_T *pEvent)
{
	printf("SingleStateEntry\n");
	return TRUE;
}



BOOL SingleStateExit(SME_OBJ_T *pDestApp, SME_EVENT_T *pEvent)
{
	printf("SingleStateExit\n");
	return TRUE;
}

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