Enterprise Engineering Forum

企业工程论坛
Categorized as: 模型与建模   Tagged as: ,, , , , ,

Transformation between Models and Code: Can Be or Can Not Be, That is the Question

Author: Mountriver TY Yu,  Source:  EE-Forum.org,  Published: 2011-04-22

Excerpt: There are a lot of questions for the transformaton between models and code, such as, Whether should the models or code be taken (required) certain restrictions for the implementation of a transformation? and what influence, on our means or purposes that using models, will be brought by the restrictions?

Last month, I had launched a discussion “What is the essential difference between MODELING and PROGRAMMING?” in the forum of MDSN; I proposed my opinion “Model is not code.” and some of possible aspects for the discussion on the differences between models/modeling and code/programming:
– the perspective
– the business/problem vs. computer/platform
– the interpretation context
– what is it oriented?
– how it can be specified?

I think, the issue is significant but not sufficient enough yet.

Recently, Vincent Hanniet discussed the topic in his essay “MDA/MDD: don’t round-trip!” focus on another concern about round-trip. He said also “Mode is not code.” and implied that we should not be “coupling modeling and coding through round-trip”, “So please, don’ t round-trip!” Further, in a  comment on the post, he stated his opinion more clearly

In brief:
1) Model is not code,
2) Code may be (partly) generated from models,
3) Code may be reverse-modelized but this usage is not appropriate in MDA/MDD

Here, I want to try to write some of my thoughts relating and following Vincent’s excellent thinking.

First, I think, the round-trip engineering is not the matter but the basic question is: whether it is feasible, and by what kind of restrictions? It may be not ‘To Do or Not To Do’ but ‘Can Be or Can Not Be’, that is the question.

Perhaps, this issue can be boiled down to transformation-ability or transformation-ness (Sorry, I’m not sure is it the appropriate expression?) It can be investigated in many certain situations: A transformation from certain models to code or certain code to model(s) is possibly effective, non-effective, effective and reversible, or effective and non-reversible. Further more, even if a transformation is reversible, the result is possibly recovered fully or partially, or as the same or similar.

More specifically,

  • Whether should the models or code be taken (required) certain restrictions for the implementation of a transformation? and what influence, on our means or purposes that using models, will be brought by the restrictions?
  • What kind of a model can be transform into code?
    (and what is the meaning about “a model is transformed into code”?)
  • What kind of code can be transform into certain model(s)?
    (and what is the meaning about “some code is transformed into model”?)
  • Is a result of trasformation unique?
    (or what factors/conditions/context will affect the results of transformation?)
  • If a “model” is so-called executable, finally, is it code or model?
  • Is the code generation (from model) equal to model transformation?

Ultimately, these issues will lead to a more general question, as I often mentioned:

  • What is a model?
  • How does a model work?

They need more explicit answers.

 

—-

 

Updated:  April 23, May 30 (to correct a serious mistake in grammar)

 

Whether should the models or code be taken (required) certain restrictions for the implementation of a transformation? and what influence, on our means or purposes that using models, will be brought by the restrictions?

Copyright

Creative Commons License
Transformation between Models and Code: Can Be or Can Not Be, That is the Question by Mountriver TY Yu is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.

Cite Style

GB7714 style: Mountriver TY Yu. Transformation between Models and Code: Can Be or Can Not Be, That is the Question[EB/OL]. EE-Forum.org, http://www.ee-forum.org/wp/pub/ty/2011-04-p2728.html, 2011-04-22[2017-09-24 09:47]

Chicago style: Mountriver TY Yu, "Transformation between Models and Code: Can Be or Can Not Be, That is the Question", EE-Forum.org, http://www.ee-forum.org/wp/pub/ty/2011-04-p2728.html(accessed 2017-09-24 09:47)

Posted by   2011-04-22(Original)   Hits 8135   Modified 2012-10-25
Prev Post: 
Next Post: 

Related Entries:

The Model Muddle on Computing
Modeling on Black/White-boxes, and Abstract Level
Open World and Finite Models
Some Basic Topics and Judgment of Ownership to the Three Spaces
On Some Main Kinds of Models in MDE/MDSD

Leave a Response

You must be logged in to post a comment.