11.12.2012 Views

Model-Driven Evolution of Software Architectures - Software and ...

Model-Driven Evolution of Software Architectures - Software and ...

Model-Driven Evolution of Software Architectures - Software and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

160 Chapter7. <strong>Model</strong>-<strong>Driven</strong>Migration<br />

(a)TRStargetmodel<br />

check RCB comm.<br />

<br />

transfer W2U<br />

[combined_load]<br />

<br />

move UR to rotate<br />

check RCB comm.<br />

report done<br />

[not(combined_load)]<br />

<br />

finish exchange<br />

(b)ActivityDiagram<br />

Figure 7.11:Resultsforunloadwaferrequest<br />

unload_wafer.TheselectedelementunderthePropertiestabinthebottom<br />

partrevealsthat“SimpleTask check RCB comm.”canonlybedispatchedafter<br />

itspredecessor“OrTask combined_load”hasbeenexecuted.<br />

Theconsequence<strong>of</strong>usingacustommetamodelisthatweonlyhavethe<br />

basicgeneratededitortovisualise<strong>and</strong>documentourtransformationresults.Again,weturnedtomodeltransformationstosolvethisproblem.As<br />

thereisnosuitablegraphicalrepresentationforcompleteTRSmodelsyet,<br />

wedefinedatransformationthatmapsaTRSmodeltoUMLActivityGraphs<br />

forthedynamicpart(oneforeachrequest)<strong>and</strong>aUMLClassmodelforthe<br />

staticpart.Theresult<strong>of</strong>thistransformationcaneasilybedisplayedusing<br />

UMLtools. Figure7.11(b)onthispage,forinstance,showsthedynamic<br />

part<strong>of</strong>ourunloadwaferrequestdisplayedasanUMLActivityGraph.<br />

Notethat,wemerelyuseUMLnotationtorepresentpart<strong>of</strong>thetaskresourcemodel.Assuch,thesemanticsarenotidenticaltothat<strong>of</strong>UMLactivitygraphs,butonlysimilar.WerepresentTasksasActivitiesstereotyped<br />

withtheresourcetheyrequire. Thetransitionrepresentpredecessorrelationships(inreversedirection).ForAndTasksweuseforkPseudostates(representedbythehorizontalblackbar).AcompleteAndTaskisthusrep-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!