Print Page | Close Window

Language for modeling Harel StateCharts scxml

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=246
Printed Date: 27.Mar.2026 at 00:26
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Language for modeling Harel StateCharts scxml
Posted By: iceman
Subject: Language for modeling Harel StateCharts scxml
Date Posted: 04.Jul.2011 at 17:02
I found the w3c latest scxml working draft( http://www.w3.org/TR/scxml - www.w3.org/TR/scxml ) to be quite mature and workable for defining android phone applications( http://commons.apache.org/scxml/usecases/scxml-stopwatch-on-android.html - http://commons.apache.org/scxml/usecases/scxml-stopwatch-on-android.html ). It allows quite good separation of the MVC for a tool to be developed( http://svn.apache.org/repos/asf/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/stopwatch.xml - http://svn.apache.org/repos/asf/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/stopwatch.xml , http://commons.apache.org/scxml/usecases/scxml-stopwatch-on-android/stopwatch_display.xml - http://commons.apache.org/scxml/usecases/scxml-stopwatch-on-android/stopwatch_display.xml ).
Can someone give some suggestions on how to define the modeling language for so that it maps well to the XML schema defined by the standards?



Replies:
Posted By: jpt
Date Posted: 07.Jul.2011 at 17:33
While you may surely define a modeling language based on the XML schema (by mapping schema elements to different elements of GOPPRR types) your modeling language does not need to be developed based on the expected output. Instead you may have totally other kind of language constructs and then use the generator to produce the desirable output, like the one that follows the XML schema mentioned above.
 
I would instead start to look what kind of phone applications I would be developing: a browser, particular type of game, enterprise app (e.g. http://www.metacase.com/cases/ucssm/ - http://www.metacase.com/cases/ucssm/ ), or own administrative software (e.g. sending electricity consumption bill, remote controlling heating in a house as in http://www.metacase.com/cases/phone_example.html - http://www.metacase.com/cases/phone_example.html ) as they advocate different kind of language concepts. If we look the problem this way, then we don’t even need to focus on one particular platform (like Android): from higher-level models we can target different platforms (output formats). For example, the S60Phone example in the evaluation version that generates Python could already now be extended with another generator that produces state machine parts as given in the XML schema. However, if we can fix the target platform, like Android/XML schema, the development of the language becomes easier.
 
Still your question remains: how we can find good language concepts or at least candidate concepts if we don’t take them from the XML schema (or other expected output). Based on our experiences there are different kind of sources for the language concepts and I would suggest checking the SPLC article (available at http://users.jyu.fi/~jpt/TolKelSPLC2005.pdf - http://users.jyu.fi/~jpt/TolKelSPLC2005.pdf ) as we reviewed 23 cases and identified different ways to develop the language. One way was following the output (or XML schema) but there are also others. We extended the analysis later in the book on Domain-Specific Modeling (see http://www.dsmbook.com/ - www.dsmbook.com ).



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net