MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - Language for modeling Harel StateCharts scxml
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Language for modeling Harel StateCharts scxml

 Post Reply Post Reply
Author
Message
iceman View Drop Down
Major Contributor
Major Contributor
Avatar

Joined: 19.Jun.2011
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote iceman Quote  Post ReplyReply Direct Link To This Post Topic: Language for modeling Harel StateCharts scxml
    Posted: 04.Jul.2011 at 17:02
I found the w3c latest scxml working draft(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). 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://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?


Edited by iceman - 04.Jul.2011 at 18:07
Back to Top
jpt View Drop Down
MetaCase
MetaCase
Avatar

Joined: 25.Mar.2008
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpt Quote  Post ReplyReply Direct Link To This Post 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/), 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) 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) 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 www.dsmbook.com).


Edited by jpt - 07.Jul.2011 at 22:06
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.031 seconds.