This is a framework for model driven development of interactive emergency response environments. This framework includes:

  1. EMT 2.0 (ERE-ML-Tool 2.0)
  2. Transformation codes
  3. ERE-ML 2.0 Platform

Instructions:

For using the framework, follow these instructions:

Prerequisites:

A) Modeling

  1. Download EMT2.0 plugin and extract it into the dropins folder of Eclipse and re-run the eclipse.exe.
  2. Create new general project (File > new project > general project), and choose a name for it (for example “ERE_diagrams”).
  3. 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.
  4. Open .masml_diagram file and draw a model for an ERE scenario by using MAS and ERE nodes and relationships.
  5. 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

  1. Download Transformation code plugin and extract it into the dropins folder of Eclipse and re-run the eclipse.exe.
  2. Right click on the model and select Acceleo Model to Text > Generate Java Application to automatically generate a java project with the same name of the model.

C) Running Generated Codes

  1. Add JADE and ERE-ML_Platform2.0 libraries in to your project. Follow these instructions:
    • Download the Platform plugins and extract two jar files.
    • 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 two jar files in to the project.
  2. Run the project as java application.

 

Samples:

Leave a Reply

Your email address will not be published. Required fields are marked *