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
f8acaf45
Commit
f8acaf45
authored
6 years ago
by
Emmanuel Godard
Browse files
Options
Downloads
Patches
Plain Diff
md list
parent
f678e4ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+13
-13
13 additions, 13 deletions
README.md
with
13 additions
and
13 deletions
README.md
+
13
−
13
View file @
f8acaf45
#
b
asic example using Davis
#
B
asic example
of
using Davis
## Getting started with Intellij
1
-
Clone the basic example repository :
1
.
Clone the basic example repository :
```
git clone https://gitlab.lis-lab.fr/davis/basic-example.git
```
2
-
Open IntelliJ and load project :
2
.
Open IntelliJ and load project :
```
File/Open
```
...
...
@@ -17,21 +17,21 @@ Choose the basic-example folder and click ok
## Write new algorithm
1
-
Write your java algorithm into the src folder : MyAlgo.java
2
-
Open 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
1
.
Write your java algorithm into the src folder : MyAlgo.java
2
.
Open 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
gradle task named "runtestName"
5
-
Click to execute.
5
.
Click to execute.
## Without Intellij
1
-
Write your java algorithm into the src folder : MyAlgo.java
2
-
Open scenario file and add a line with 5 parameters :
<testName>
<networkGeneratorFile>
<scheme>
<size>
<algoFile
:
MyAlgo.java
>
3
-
Execute in a terminal with
`./gradlew runtestName`
1
.
Write your java algorithm into the src folder : MyAlgo.java
2
.
Open scenario file and add a line with 5 parameters :
`
<testName> <networkGeneratorFile> <scheme> <size> <algoFile : MyAlgo.java>
`
3
.
Execute in a terminal with
`./gradlew runtestName`
...
...
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