Skip to content

Commit

Permalink
Initial commit of a stub Repast Simphony 2.2 project
Browse files Browse the repository at this point in the history
  • Loading branch information
oskar-j committed Aug 14, 2014
1 parent e0a3ea1 commit 3f78ad1
Show file tree
Hide file tree
Showing 82 changed files with 5,981 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
<classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/>
<classpathentry kind="con" path="REPAST_SIMPHONY_SUPPORT"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/bin
37 changes: 37 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>emergent-task-allocation</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>repast.simphony.systemdynamics.diagram.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>repast.simphony.statecharts.diagram.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>repast.simphony.flowchart.repast_simphony_flowchart_builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>repast.simphony.eclipse.repast_simphony_nature</nature>
<nature>repast.simphony.flowchart.repast_simphony_flowchart_nature</nature>
<nature>repast.simphony.statecharts.diagram.repast_simphony_statechart_nature</nature>
<nature>repast.simphony.systemdynamics.diagram.repast_simphony_systemdynamics_nature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.jdt.groovy.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
groovy.compiler.level=21
24 changes: 24 additions & 0 deletions MessageCenter.log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
log4j.rootLogger = error

log4j.logger.org.java.plugin = warn, stdout
log4j.logger.org.apache.commons= warn, stdout
log4j.logger.repast.simphony.plugin = warn, stdout

log4j.logger.MessageCenter.INTERNAL.repast = info, stdout, R
log4j.logger.MessageCenter.INTERNAL.saf = info, stdout, R

log4j.logger.repast.simphony.batch = info, stdout, R
log4j.logger.repast.simphony.batch.ssh.SSHSessionFactory = warn, stdout, R

log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout = simphony.util.messages.MessageCenterLayout
log4j.appender.stdout.layout.conversionPattern =%-5p [%t] %d{HH:mm:ss,SSS} %c - %m%n
#log4j.appender.stdout.Threshold=debug

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=debug.log
log4j.appender.R.MaxFileSize=100KB
log4j.appender.R.MaxBackupIndex=1
#log4j.appender.R.Threshold=info
log4j.appender.R.layout=simphony.util.messages.MessageCenterLayout
log4j.appender.R.layout.ConversionPattern=%-5p [%t] %d{ISO8601} %c - %m%n
1 change: 1 addition & 0 deletions batch/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place your Repast Simphony batch run files in this directory.
3 changes: 3 additions & 0 deletions batch/batch_params.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<sweep runs="1">
</sweep>
68 changes: 68 additions & 0 deletions docs/.ModelInitializer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<HTML><FONT FACE=Verdana, Arial, Sans><TITLE>ModelInitializer.agent</TITLE><BODY><STYLE TYPE="text/css"><!--.centeralign <BLOCKQUOTE>text-align:center</BLOCKQUOTE>--></STYLE><HEAD><P CLASS="centeralign">ModelInitializer.agent</P></HEAD>The package name is "bin.emergent-task-allocation".</p>
The following external code is referenced:<BLOCKQUOTE></p>
<li>Components from java.io.*</li></p>
<li>Components from java.math.*</li></p>
<li>Components from java.util.*</li></p>
<li>Components from javax.measure.unit.*</li></p>
<li>Components from org.jscience.mathematics.number.*</li></p>
<li>Components from org.jscience.mathematics.vector.*</li></p>
<li>Components from org.jscience.physics.amount.*</li></p>
<li>Components from repast.simphony.adaptation.neural.*</li></p>
<li>Components from repast.simphony.adaptation.regression.*</li></p>
<li>Components from repast.simphony.context.*</li></p>
<li>Components from repast.simphony.context.space.continuous.*</li></p>
<li>Components from repast.simphony.context.space.gis.*</li></p>
<li>Components from repast.simphony.context.space.graph.*</li></p>
<li>Components from repast.simphony.context.space.grid.*</li></p>
<li>Components from repast.simphony.engine.environment.*</li></p>
<li>Components from repast.simphony.engine.schedule.*</li></p>
<li>Components from repast.simphony.engine.watcher.*</li></p>
<li>Components from repast.simphony.groovy.math.*</li></p>
<li>Components from repast.simphony.integration.*</li></p>
<li>Components from repast.simphony.matlab.link.*</li></p>
<li>Components from repast.simphony.query.*</li></p>
<li>Components from repast.simphony.query.space.continuous.*</li></p>
<li>Components from repast.simphony.query.space.gis.*</li></p>
<li>Components from repast.simphony.query.space.graph.*</li></p>
<li>Components from repast.simphony.query.space.grid.*</li></p>
<li>Components from repast.simphony.query.space.projection.*</li></p>
<li>Components from repast.simphony.parameter.*</li></p>
<li>Components from repast.simphony.random.*</li></p>
<li>Components from repast.simphony.space.continuous.*</li></p>
<li>Components from repast.simphony.space.gis.*</li></p>
<li>Components from repast.simphony.space.graph.*</li></p>
<li>Components from repast.simphony.space.grid.*</li></p>
<li>Components from repast.simphony.space.projection.*</li></p>
<li>Components from repast.simphony.ui.probe.*</li></p>
<li>Components from repast.simphony.util.*</li></p>
<li>Components from simphony.util.messages.*</li></p>
<li>Components from static java.lang.Math.*</li></p>
<li>Components from static repast.simphony.essentials.RepastEssentials.*</li></p>
</BLOCKQUOTE><P></p>
The class "ModelInitializer" is defined with visibility "public" . This is a model initializer.</p>
<BLOCKQUOTE></p>
</p>
</p>
</p>
<li>There is a method named "initializeModel" method has visibility "public" has return type "def". This is the user model builder The block is tagged with the name "Initialize Model".</li></p>
</p>
</p>
<BLOCKQUOTE>The code for the "initializeModel" method is as follows:<BLOCKQUOTE><CODE></p>
</p>
</p>
Define the return value variable.</p>
def returnValue</p>
</p>
Note the simulation time.</p>
def time = GetTickCountInTimeUnits()</p>
</p>
Return the results.</p>
return returnValue</p>
</p>
</BLOCKQUOTE></BLOCKQUOTE></CODE></p>
</p>
</p>
</p>
</BLOCKQUOTE></p>
</p>
</BODY></HTML>
1 change: 1 addition & 0 deletions docs/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place your model's web-based (HTML) documentation files in this directory using "index.html" as the home page.
68 changes: 68 additions & 0 deletions docs/emergent-task-allocation.ModelInitializer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<HTML><FONT FACE=Verdana, Arial, Sans><TITLE>ModelInitializer.agent</TITLE><BODY><STYLE TYPE="text/css"><!--.centeralign <BLOCKQUOTE>text-align:center</BLOCKQUOTE>--></STYLE><HEAD><P CLASS="centeralign">ModelInitializer.agent</P></HEAD>The package name is "emergent-task-allocation".</p>
The following external code is referenced:<BLOCKQUOTE></p>
<li>Components from java.io.*</li></p>
<li>Components from java.math.*</li></p>
<li>Components from java.util.*</li></p>
<li>Components from javax.measure.unit.*</li></p>
<li>Components from org.jscience.mathematics.number.*</li></p>
<li>Components from org.jscience.mathematics.vector.*</li></p>
<li>Components from org.jscience.physics.amount.*</li></p>
<li>Components from repast.simphony.adaptation.neural.*</li></p>
<li>Components from repast.simphony.adaptation.regression.*</li></p>
<li>Components from repast.simphony.context.*</li></p>
<li>Components from repast.simphony.context.space.continuous.*</li></p>
<li>Components from repast.simphony.context.space.gis.*</li></p>
<li>Components from repast.simphony.context.space.graph.*</li></p>
<li>Components from repast.simphony.context.space.grid.*</li></p>
<li>Components from repast.simphony.engine.environment.*</li></p>
<li>Components from repast.simphony.engine.schedule.*</li></p>
<li>Components from repast.simphony.engine.watcher.*</li></p>
<li>Components from repast.simphony.groovy.math.*</li></p>
<li>Components from repast.simphony.integration.*</li></p>
<li>Components from repast.simphony.matlab.link.*</li></p>
<li>Components from repast.simphony.query.*</li></p>
<li>Components from repast.simphony.query.space.continuous.*</li></p>
<li>Components from repast.simphony.query.space.gis.*</li></p>
<li>Components from repast.simphony.query.space.graph.*</li></p>
<li>Components from repast.simphony.query.space.grid.*</li></p>
<li>Components from repast.simphony.query.space.projection.*</li></p>
<li>Components from repast.simphony.parameter.*</li></p>
<li>Components from repast.simphony.random.*</li></p>
<li>Components from repast.simphony.space.continuous.*</li></p>
<li>Components from repast.simphony.space.gis.*</li></p>
<li>Components from repast.simphony.space.graph.*</li></p>
<li>Components from repast.simphony.space.grid.*</li></p>
<li>Components from repast.simphony.space.projection.*</li></p>
<li>Components from repast.simphony.ui.probe.*</li></p>
<li>Components from repast.simphony.util.*</li></p>
<li>Components from simphony.util.messages.*</li></p>
<li>Components from static java.lang.Math.*</li></p>
<li>Components from static repast.simphony.essentials.RepastEssentials.*</li></p>
</BLOCKQUOTE><P></p>
The class "ModelInitializer" is defined with visibility "public" . This is a model initializer.</p>
<BLOCKQUOTE></p>
</p>
</p>
</p>
<li>There is a method named "initializeModel" method has visibility "public" has return type "def". This is the user model builder The block is tagged with the name "Initialize Model".</li></p>
</p>
</p>
<BLOCKQUOTE>The code for the "initializeModel" method is as follows:<BLOCKQUOTE><CODE></p>
</p>
</p>
Define the return value variable.</p>
def returnValue</p>
</p>
Note the simulation time.</p>
def time = GetTickCountInTimeUnits()</p>
</p>
Return the results.</p>
return returnValue</p>
</p>
</BLOCKQUOTE></BLOCKQUOTE></CODE></p>
</p>
</p>
</p>
</BLOCKQUOTE></p>
</p>
</BODY></HTML>
9 changes: 9 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<html><FONT FACE=Verdana, Arial, Sans>
<head>
<title>emergent-task-allocation</title>
</head>
<body>
This is the documentation for the emergent-task-allocation model...</p>
<li>The documentation for "emergent-task-allocation.ModelInitializer" can be found <a href="emergent-task-allocation.ModelInitializer.html">here</a>.</li></p>
</body>
</html>
3 changes: 3 additions & 0 deletions emergent-task-allocation.rs/context.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<context id="emergent-task-allocation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://repast.org/scenario/context">

</context>
6 changes: 6 additions & 0 deletions emergent-task-allocation.rs/parameters.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<parameters>

<parameter name="randomSeed" displayName="Default Random Seed" type="int" defaultValue="__NULL__" />

</parameters>
4 changes: 4 additions & 0 deletions emergent-task-allocation.rs/scenario.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Scenario>
<repast.simphony.dataLoader.engine.MIContextXMLDataLoaderAction context="emergent-task-allocation" file="repast.simphony.dataLoader.engine.MIContextXMLDataLoaderAction_0.xml" />
</Scenario>
6 changes: 6 additions & 0 deletions emergent-task-allocation.rs/user_path.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<model name="emergent-task-allocation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://repast.org/scenario/user_path">
<classpath>
<agents path="../bin" />
<entry path="../lib" />
</classpath>
</model>
1 change: 1 addition & 0 deletions freezedried_data/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place your model's data files in this directory.
1 change: 1 addition & 0 deletions icons/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place your model's icon files in this directory.
Binary file added icons/model.bmp
Binary file not shown.
Binary file added icons/model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3f78ad1

Please sign in to comment.