Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
basic-example
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
davis
basic-example
Commits
d8460438
Commit
d8460438
authored
6 years ago
by
Emmanuel Godard
Browse files
Options
Downloads
Patches
Plain Diff
correct README for breaking changes in 0.8
parent
ff9dea19
No related branches found
No related tags found
No related merge requests found
Pipeline
#2377
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+9
-10
9 additions, 10 deletions
README.md
with
9 additions
and
10 deletions
README.md
+
9
−
10
View file @
d8460438
...
...
@@ -4,7 +4,6 @@
```
./gradlew downloadAndUnzipFile
./gradlew installJBotsim
```
## Getting started without IDE
...
...
@@ -12,11 +11,11 @@
1.
Write your java algorithm into the
`src`
folder :
`MyAlgo.java`
2.
Configure your
`PATH`
variable
```
export PATH=$PATH:`pwd`/
davis
/bin
export PATH=$PATH:`pwd`/
build/install/davis-beta
/bin
```
3.
Execute in the
`src`
directory
```
udavis <networkGeneratorFile>
<scheme>
<size> <algoFile : MyAlgo.java>
udavis
-n
<networkGeneratorFile>
-i <ids> -s
<size>
-al
<algoFile : MyAlgo.java>
```
...
...
@@ -25,15 +24,15 @@ udavis <networkGeneratorFile> <scheme> <size> <algoFile : MyAlgo.java>
1.
Modify
`commandLine`
parameters for task
`davis`
in
`build.gradle`
.
3.
Run
```
./gradlew hello
ejcim
./gradlew hello
```
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>`
3.
Execute in a terminal with
`./gradlew runscenarioName`
`
[
<scenarioName>
] -n
<networkGeneratorFile>
-i
<scheme>
-s
<size>
-al
<algoFile : MyAlgo.java>`
3.
Execute in a terminal with
`./gradlew run
[
scenarioName
]
`
## Getting started with Intellij
...
...
@@ -50,17 +49,17 @@ Choose the `basic-example` folder and click ok for *auto-import*.
1.
Write your java algorithm into the
`src`
folder :
`MyAlgo.java`
2.
Open
`src/scenario`
file and add a line with 5 parameters :
`
<test
Name> <networkGeneratorFile> <scheme> <size> <algoFile : MyAlgo.java>`
`
[<scenario
Name>
] -n
<networkGeneratorFile>
-i
<scheme>
-s
<size>
-al
<algoFile : MyAlgo.java>`
3.
Refresh gradle panel.
4.
In
`Tasks/application`
of the gradle panel you should see your
testName
as a
gradle task named
"
run
testName"
4.
In
`Tasks/application`
of the gradle panel you should see your
scenario
as a
gradle task named
`
run
[<scenarioName>]`
.
5.
Click to execute.
## Docs
See also
[
documentation for davis
](
https://gitlab.lis-lab.fr/davis/davis/tree/master/doc
)
.
See also
the
[
documentation for davis
](
https://gitlab.lis-lab.fr/davis/davis/tree/master/doc
)
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment