Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mkit committed Jan 24, 2014
1 parent 76dba7d commit 8fea380
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jdeeco-simulation-integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ JNI is used in the implementation and as an output of the project a shared libra
* Another part is to configure properly the eclipse project. The project requires includes that are provided by the OMNET++ and as such in the Project Properties > C\C++ General > Paths and Symbols > Includes please add path to the "include" directory in your OMNET++ installation.
* Similarly the project needs to be linked with the OMNET++ libraries so in the Project Properties > C\C++ General > Paths and Symbols > Library Paths please point to the "bin" directory of the OMNET++ project. Alternatively, if you did not rebuild the OMNET++ distribution (see the first bullet) you can use libraries given in the project. For that you need to set "Library paths" to project location ("."). In the "Libraries" tab please add following entries "oppsim", "oppenvir" and "oppcommon".

#### Usage in OMNET++:
In order to connect the OMNET++ simulation with jDEECo, one needs to create a simple module that inherits (pure C++ inheritance, not in NED file) from the jDEECoModule class. Headers files can be found in the project so an inclusion pointing to the project location is necessary. Also the reference to the integration library is necessary so one needs to set "Library paths" in the Project Properties > C\C++ General > Paths and Symbols to point also to this project location.
Because OMNET++ relies on the makemake, setting up particular libraries reference is different than previously. For that one needs to open the Project Properties > OMNt++ > Makemake > [configuration] > Options > Link > More and in the "Additional libraries to link" put "integration". Also in the Project Properties > OMNt++ > Makemake > [configuration] > Options > Target tab please select shared library. This shared library will be loaded when jDEECo is run. However, this step should be done at the end of the development of the network topology.

0 comments on commit 8fea380

Please sign in to comment.