Skip to content
Snippets Groups Projects
Commit 92537cff authored by Emmanuel Godard's avatar Emmanuel Godard
Browse files

readme OK

parent 1a705227
No related branches found
No related tags found
No related merge requests found
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment