2014年10月3日星期五

Domain Integration and Model Translation

In today’s workshop, we talked about domain integration and model translation mainly.
To begin with, after we have finished data, process, state modelling, then it is necessary to integration them together. In this case, xtUML is a useful tool,  because we can integrate everything without error, simply by following domain integration rules, as long as each domain is correct.
After we finished domain integration, then it was time to generate code. We also have rules to translate the model into code in C, java, php, Mysql ..etc.
We tried Pedestrian Crossing system as practice in the afternoon. Although most part of the code had been done, the rest part of the code could be done by following the rules. During of practice, I found that the process was really boring, because I cannot even change the name of a single element while writing the code manually. When I finished, it also took me a lot of time fixing the mistakes, such as wrong spelling, lack of transition … As the result, the code ran properly at last.

Personally, writing the code is the hard work, because it takes too much time to do that. However, since the code could be written by rules, we could make our computers to do that automatically. Therefore, as long as the model has been integrated, we do not need to spare any effort on writing code.

没有评论:

发表评论