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 project
through the wizard. (Do not open JavaFX persepcitve) -
Under the project, create a folder
requirementsmodel
and a new filemodelname.remodel
as textual requirements model, fill the following skeleton inmodelname.remodel
UseCaseModel helloworld {
}
and then save it.
-
Right click the textual model
modelname.remodel
to create a graphic modelmodelname.arid
through the wizard (New
->Other
->Sirius
->Represteantions File
. Note that selectionRequirementModel
is 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-arid
ormodelname.remodel
. -
Generate protoypes from
modelname.remodel
, all the code will be in foldersrc-gen
. -
Set genereate folder
src-gen
as source folder. OpenPrototype.fxgraph
to generatePrototype.xml
if it is not exist. -
Run the prototype and enjoy through
Main.java
undergui
package,