Commit 92537cff authored by Emmanuel Godard's avatar Emmanuel Godard

readme OK

parent 1a705227
# Basic example of using Davis
## Install Dependencies locally
## Install dependencies locally
`./gradlew getJBotsim`
```
./gradlew downloadAndUnzipFile
./gradlew getJBotsim`
```
## Without IDE
## Getting started without IDE
1. Write your java algorithm into the `src` folder : `MyAlgo.java`
2. Modify `commandLine` parameters for task `davis` in `build.gradle`.
2. Configure your `PATH` variable
```
export PATH=$PATH:`pwd`/davis/bin
```
3. Execute in the `src` directory
```
udavis <networkGeneratorFile> <scheme> <size> <algoFile : MyAlgo.java>
```
## Working with `gradle`
1. Modify `commandLine` parameters for task `davis` in `build.gradle`.
3. Run
```
./gradlew davis
```
You can collect all your examples in `scenario` file
You can also collect all your examples in a `scenario` file
1. Open `scr/scenario` file and add a line with 5 parameters :
`<scenarioName> <networkGeneratorFile> <scheme> <size> <algoFile : MyAlgo.java>`
......@@ -30,10 +46,10 @@ File/Open
Choose the `basic-example` folder and click ok for *auto-import*.
## Write new algorithm
## Working with Intellij and `gradle`
1. Write your java algorithm into the src folder : `MyAlgo.java`
2. Open scenario file and add a line with 5 parameters :
1. Write your java algorithm into the `src` folder : `MyAlgo.java`
2. Open `src/scenario` file and add a line with 5 parameters :
`<testName> <networkGeneratorFile> <scheme> <size> <algoFile : MyAlgo.java>`
3. Refresh gradle panel.
4. In `Tasks/application` of the gradle panel you should see your testName as a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment