Trmwac is a project mainly written in Java, it's free.
Trusted Routing MWAC
TR MWAC - Trusted Routing MWAC
This project was developped in Eclipse (Helios Service Release 2), and uses Jade (agent framework). The Jade libraries are found in the /lib folder of the project.
To set up the simulation, you should have an .xml input file, containing the specification of the topology and organizational structure. The /input folder contains several input files (12agents.xml, 25agents.xml etc)
If you want to obtain an .xml file from MASH: 0. You need MASH (not included here)
In the "simulation.multiagentSyste.MAS" class
Define the String orgXMLfilename = "path-to-the-input-file-you-want-to-create";
Add the configToXML() method (can be found in "configToXML.txt" file) 2.In the default package, WDMainWindow.java class
look for "TST"; modify the action for the "test" button in MASH GUI, like this:
/* Test */
if (WDTouche.equals("TST"))
this.mas.configToXML();
Run MASH, create the network and when you are ready to save the organization, click Debug -> test.
Edit the Parameters.java file, found in sim.eval package (/src folder):
specify the desired values for the parameters: USE_AUTHORIZATION USE_TRUST WATCH_TIME etc.
In the current version, the attackers are selected randomly, in the Scenario.java class (package sim.scn), using the method:
public List
- You may follow the comment/uncomment indications in the source
in order to manually set the attackers.
In the demo.xml file:
total - total number of measurements sent by each node interval - time (milliseconds) between measurements
!! IMPORTANT: If the USE_TRUST is true, this interval should be greater than the WATCH_TIME set in the Parameters.java file
issued - time when the instruction is issued (millseconds from the beginning of the simulation)
The output will be written in the form of an .html file, in the /output folder.
If you want to have an image of the topology in the output file, you need to make a screenshot of the organization obtained in MASH, and save it in the /images folder, with the same name as the input, and a .png extension.
Example:
input file: demo.xml image file: demo.png resulting output file: demo-#.html
You can reset it anytime you want.
The default launch configuration is demo.launch, found in the root of the project folder. Here is what happens:
Jade platform is started (main clas: jade.Boot3)
a Simulation agent is created:
The only parameter of the simulation agent is the input .xml filename, which you may change.