Commit 94c4fa91 authored by Denis Arrivault's avatar Denis Arrivault

work in progress

parent d030b0fc
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GoogleJavaFormatSettings">
<option name="enabled" value="false" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/basic-example.iml" filepath="$PROJECT_DIR$/.idea/basic-example.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="b736bff0-a367-4ebe-9b91-ad82d4524dd7" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/basic-example.iml" beforeDir="false" />
</list>
<ignored path="$PROJECT_DIR$/.gradle/" />
<ignored path="$PROJECT_DIR$/build/" />
<ignored path="$PROJECT_DIR$/out/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileEditorManager">
<leaf>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="285">
<caret line="25" column="26" selection-start-line="25" selection-start-column="26" selection-end-line="25" selection-end-column="26" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/scenario">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="1" column="5" selection-start-line="1" selection-start-column="5" selection-end-line="1" selection-end-column="5" />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/src/scenario" />
<option value="$PROJECT_DIR$/build.gradle" />
</list>
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="41" />
<option name="y" value="27" />
<option name="width" value="1879" />
<option name="height" value="1173" />
</component>
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="1" id="Add" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="basic-example" type="b2602c69:ProjectViewProjectNode" />
<item name="basic-example" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="basic-example" type="b2602c69:ProjectViewProjectNode" />
<item name="basic-example" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="PackagesPane" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1551374126704" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="b736bff0-a367-4ebe-9b91-ad82d4524dd7" name="Default Changelist" comment="" />
<created>1551370699776</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1551370699776</updated>
<workItem from="1551370701189" duration="3238000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="3238000" />
</component>
<component name="ToolWindowManager">
<frame x="41" y="27" width="1879" height="1173" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Image Layers" />
<window_info id="Designer" />
<window_info id="UI Designer" />
<window_info id="Capture Tool" />
<window_info id="Favorites" side_tool="true" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24986361" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" />
<window_info anchor="bottom" id="Version Control" />
<window_info anchor="bottom" id="Terminal" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="right" id="Palette" />
<window_info anchor="right" id="Theme Preview" />
<window_info anchor="right" id="Maven" />
<window_info anchor="right" id="Capture Analysis" />
<window_info anchor="right" id="Palette&#9;" />
<window_info anchor="right" id="Database" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/scenario">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="1" column="5" selection-start-line="1" selection-start-column="5" selection-end-line="1" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="285">
<caret line="25" column="26" selection-start-line="25" selection-start-column="26" selection-end-line="25" selection-end-column="26" />
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
apply plugin: "java"
apply plugin: "idea"
apply plugin: "application"
repositories {
jcenter()
maven {
name = "jbotsim-repo"
url = "https://repo1.maven.org/maven2/io/jbotsim/"
}
ivy {
url 'http://pageperso.lif.univ-mrs.fr/~emmanuel.godard'
layout 'pattern', {
artifact '/[module]-[revision].[ext]'
}
}
}
dependencies {
compile files("${System.properties['java.home']}/../lib/tools.jar")
compile group: 'io.jbotsim', name: 'jbotsim-extras-common', version: jbotsimVersion
compile group: 'commons-cli', name: 'commons-cli', version: 1.4
compile group: 'io.jbotsim', name: 'jbotsim-serialization-common', version: jbotsimVersion
compile group: 'io.jbotsim', name: 'jbotsim-extras-swing', version: jbotsimVersion
compile 'udavis:0.7rc1@zip'
}
//Add parameters to the run task
run {
//The run task can be called with parameters :
//gradle run -PappArgs="['examples/agents/RingAnon3Sym.java', 'RandomIds', '15', 'examples/agents/RingSize.java']"
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
}
task unzip(type: Copy) {
def zipPath = project.configurations.compile.find {it.name.startsWith("udavis") }
println zipPath
def zipFile = file(zipPath)
def outputDir = file("${buildDir}/unpacked/dist")
from zipTree(zipFile)
into outputDir
}
//Define integrationTest sources and ressources
sourceSets.main.java.srcDir = "src"
ext.visitExamples = {scripts ->
def srcDirectoryPath = "${rootProject.projectDir}" + File.separator + "src" + File.separator
println(srcDirectoryPath)
def scenariFile = new File(srcDirectoryPath + "scenario")
if (scenariFile.exists()){
def scenari = scenariFile.text.split('\n')
scenari.findAll {
if (!it.startsWith('#')){
def scenario = it.split();
def name = scenario.take(1).join("")
scenario = scenario.drop(1)
def args = "["
scenario.findAll{arg ->
if (arg.endsWith(".java") || arg.endsWith(".topology")){
arg = "${srcDirectoryPath}" + arg
}
args += "\"" + arg + "\","
}.each{}
args = args.substring(0,args.length()-1) + "]"
scripts.put(name, args)
}
}.each{}
}
}
def scripts = [:]
visitExamples(scripts)
scripts.each() { scriptName, scriptArgs ->
tasks.create(name: 'run' + scriptName,
type: JavaExec, group: "Application", description: "Run " + scriptName) {
classpath sourceSets.main.runtimeClasspath
main = 'davis.ui.UDavisX'
args = Eval.me(scriptArgs)
}
}
test1 RingAnon2AgentsSym.java RandomIds 18 randomWalkRing.java
test2 RingAnon2AgentsSym.java RandomIds 18 randomWalkWaitRing.java
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