Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@573
573 / gist:3939321
Created October 23, 2012 15:12
The scenario.rs/scenario.xml file (JPF)
<?xml version="1.0" encoding="UTF-8" ?>
<Scenario>
<repast.simphony.dataLoader.engine.ClassNameDataLoaderAction
context="Models"
file="../misc/common-scenario-files/repast.simphony.dataLoader.engine.MainCBuilder.xml" />
</Scenario>
@573
573 / gist:3939331
Created October 23, 2012 15:13
The scenario.rs/model.score file (JPF)
<?xml version="1.0" encoding="ASCII"?>
<score:SContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:score="http://scoreabm.org/score" label="Models" ID="models" pluralLabel="Modelss" description="">
<implementation package="gui.client.as.simple.plugin" className="MainCBuilder" basePath="E:\Programme\Eclipse Galileo (new Maven3)\eclipse\plugins" srcDir="" binDir="simphony.gui.client_1.2.0\bin"/>
<agents xsi:type="score:SContext" label="AgentContext" ID="agentContext" pluralLabel="AgentContexts">
<implementation package="simple.agent" className="AgentContext" basePath="" srcDir="" binDir="simphony.agent_1.2.0\bin"/>
<agents label="Agent" ID="agent" pluralLabel="Agents">
<implementation package="" className="Agent" basePath="" srcDir="" binDir=""/>
</agents>
</agents>
</score:SContext>
@573
573 / gist:3939352
Created October 23, 2012 15:16
The .classpath file (JPF)
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="REPAST_SIMPHONY_SUPPORT"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@573
573 / gist:3939380
Created October 23, 2012 15:19
The build.properties file (JPF)
bin.includes = bin/,\
plugin_jpf.xml,\
META-INF/,\
plugin.properties,\
MessageCenter.log4j.properties
src.includes = src/
jars.compile.order =
@573
573 / gist:3939392
Created October 23, 2012 15:20
The META-INF/MANIFEST.MF file (JPF)
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: simphony.gui.client
Bundle-Version: 1.2.0
Bundle-Localization: plugin
Require-Bundle: simphony.agent;bundle-version="1.2.0"
Bundle-Vendor: %providerName
@573
573 / gist:3939402
Created October 23, 2012 15:22
The plugin_jpf.xml file (JPF)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plugin PUBLIC "-//JPF//Java Plug-in Manifest 0.6"
"http://jpf.sourceforge.net/plugin_0_6.dtd">
<plugin id="simphony.gui.client" version="">
<attributes>
<attribute id="simphony" value="1.2.0" />
</attributes>
<requires>
@573
573 / gist:3939409
Created October 23, 2012 15:23
The plugin.properties file (JPF)
# <copyright>
# </copyright>
#
# $Id$
# ====================================================================
# To code developer:
# Do NOT change the properties between this line and the
# "%%% END OF TRANSLATED PROPERTIES %%%" line.
# Make a new property name, append to the end of the file and change
@573
573 / gist:3939417
Created October 23, 2012 15:24
The MessageCenter.log4j.properties file (JPF)
#log4j.debug=true
log4j.rootLogger = TRACE
log4j.logger.repast = WARN
log4j.logger.org.java.plugin = WARN
log4j.logger.org.mule = WARN
log4j.logger.org.apache.commons = WARN
log4j.logger.repast.simphony.plugin = WARN
@573
573 / gist:3939434
Created October 23, 2012 15:26
The .project simphony.gui.client.launch file (JPF)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/simphony.gui.client"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; path=&quot;2&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
@573
573 / gist:3939449
Created October 23, 2012 15:28
The gui/client/as/simple/plugin/MainCBuilder.java file (JPF)
package gui.client.as.simple.plugin;
import repast.simphony.context.Context;
import repast.simphony.dataLoader.ContextBuilder;
public class MainCBuilder implements ContextBuilder<Object> {
public Context<Object> build(Context<Object> context) {
return context;
}