This is a framework for model driven development of Multi-Agent Systems (MAS) in Emergency Response Environments (ERE). This framework includes:
- EMT (ERE-ML-Tool)
- Transformation codes
- JAMDER framework (an extension of JADE framework, includes MAS-ML and ERE-ML concepts)
For using the framework, follow these instructions:
- download EMT plugin and extract it into the dropins folder of Eclipse and re-run the eclipse.exe.
- Create new general project (File > new project > general project), and choose a name for it (for example “ERE_diagrams”).
- Right click on ERE_diagrams project and select new > example > Ereml diagram. Choose a name for your diagram (for example “Victoria_bushfire”). So two new files with “.masml” and “.masml_diagram” extentions will be create.
- Open .masml_diagram file and draw a model for an ERE scenario by using MAS and ERE nodes and relationships.
- After modelling the ERE scenario, it should be validated. In order to do this, from Edit menu select Validate. (you can see probably errors of your model in “problems view” of eclipse). For correct code generation, these errors should be fixed.
B) Automatic Code Generation
- Import org.eclipse.acceleo.module.EREML project into the eclipse.
- Import ERE_diagrams project created in section “A”, into the same workspace.
- Run EREMLToJava.mtl file in org.eclipse.acceleo.module.EREML project as acceleo application. In “Run Configurations” window you should set Model, Target, and Runner:
- Browse your model from ERE_diagrams by typing it’s name.masml
- Select an empty java project as Target
- Choose “Acceleo plug-in Application” as Runner
- Click on the Run button to generate java files into the target folder.
C) Running Generated Codes
- Copy jamder folder from JAMDER.rar file in to the “src” folder of your target java project.
- Add JADE library in to your project. Follow these instructions:
- Download jade.jar file.
- Right click on your java project, and select properties.
- In opened window, select “Java Build Path” from left hand side.
- In “Libraries” tab, select “Add External JARs” and add jade.jar file in to the project.
- Run the project as java application.