RM2PT Tutorial
Create a RM2PT Project from sketch
RM2PT can be integreated into any eclipse project. This turorial shows how to create a requirements model and generate prototype in JavaFx project.
-
Open RM2PT, and create a
JavaFX projectthrough the wizard. (Do not open JavaFX persepcitve) -
Under the project, create a folder
requirementsmodeland a new filemodelname.remodelas textual requirements model, fill the following skeleton inmodelname.remodel
UseCaseModel helloworld {
}
and then save it.
-
Right click the textual model
modelname.remodelto create a graphic modelmodelname.aridthrough the wizard (New->Other->Sirius->Represteantions File. Note that selectionRequirementModelis chosen on last step ofViewpoints Selection). -
Add the required library (e.g commons-lang) to your project.
-
Modify the requirements model as your desired (at least
a use case diagram,system sequence diagram, andcontracts of system operations, anda conceptual class diagram) throughmodelname-aridormodelname.remodel. -
Generate protoypes from
modelname.remodel, all the code will be in foldersrc-gen. -
Set genereate folder
src-genas source folder. OpenPrototype.fxgraphto generatePrototype.xmlif it is not exist. -
Run the prototype and enjoy through
Main.javaunderguipackage,