Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@573
573 / gist:3939463
Created October 23, 2012 15:29
The .project file (JPF)
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>simphony.gui.client</name>
<buildSpec>
<buildCommand>
<name>repast.simphony.score.agents.repast_simphony_builder</name>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
</buildCommand>
@573
573 / gist:3939503
Created October 23, 2012 15:34
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:3939515
Created October 23, 2012 15:36
The META-INF/MANIFEST.MF file (JPF)
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: simphony.agent
Bundle-Version: 1.2.0
Bundle-Localization: plugin
Bundle-Vendor: %providerName
Export-Package: simple.agent,
simple.extra
Require-Bundle: repast.simphony.data;bundle-version="1.2.0"
@573
573 / gist:3939525
Created October 23, 2012 15:37
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.agent" version="">
<attributes>
<attribute id="simphony" value="1.2.0" />
</attributes>
<requires>
@573
573 / gist:3939537
Created October 23, 2012 15:38
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:3939593
Created October 23, 2012 15:50
The simple/agent/Agent.java file (JPF)
package simple.agent;
import static org.apache.log4j.Logger.getLogger;
import org.apache.log4j.Logger;
import repast.simphony.engine.schedule.ScheduledMethod;
import simple.extra.RepastUtils;
public class Agent {
@573
573 / gist:3939603
Created October 23, 2012 15:52
The simple/agent/AgentContext.java file (JPF)
package simple.agent;
import static org.apache.log4j.Logger.getLogger;
import org.apache.log4j.Logger;
import repast.simphony.context.DefaultContext;
public class AgentContext extends DefaultContext<Agent> {
@573
573 / gist:3939611
Created October 23, 2012 15:53
The simple/extra/RepastUtils.java file (JPF)
package simple.extra;
import static org.apache.log4j.Logger.getLogger;
import org.apache.log4j.Logger;
import repast.simphony.engine.environment.RunEnvironment;
import repast.simphony.engine.environment.RunState;
import repast.simphony.engine.environment.ScheduleRegistry;
import repast.simphony.engine.schedule.ISchedule;
@573
573 / gist:3939619
Created October 23, 2012 15:54
The .project file (JPF)
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>simphony.agent</name>
<buildSpec>
<buildCommand>
<name>repast.simphony.score.agents.repast_simphony_builder</name>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
</buildCommand>
@573
573 / gist:3939631
Created October 23, 2012 15:55
The .classpath file (JPF)
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="REPAST_SIMPHONY_SUPPORT"/>
<classpathentry kind="output" path="bin"/>
</classpath>