package edu.mtu.steppables;

import sim.engine.SimState;
import sim.engine.Steppable;
import edu.mtu.simulation.ForestSim;
import edu.mtu.utilities.LandUseGeomWrapper;

@SuppressWarnings("serial")
public class Agent implements Steppable {
	
	private LandUseGeomWrapper lu;
	
	public Agent(LandUseGeomWrapper l) {
		lu = l;
	}
	
	private void setLandUse(double d) {
		lu.setLandUse(d);
	}
	
	private double getLandUse() {
		return lu.getLandUse();
	}
	
	public void updateShapefile() {
		lu.updateShpaefile();
	}
	
	public void step(SimState state) {
		ForestSim fs = (ForestSim)state;
		setLandUse(fs.random.nextDouble());
		lu.addDoubleAttribute("Land Use", getLandUse());
	}
}

@@ -162,16 +162,238 @@
 apper;%0A%0A
+// TODO Impliment an EconomicAgent and an EcosystemsAgent that are responsible for performing the actual step actions%0A// TODO Impliment a factory that is responsible for creating agents based upon the probablity passed in%0A
 @Suppres
@@ -419,16 +419,25 @@
 %0Apublic 
+abstract 
 class Ag
@@ -499,16 +499,62 @@
 r lu;%0A%09%0A
+%09public abstract void step(SimState state);%0A%09%0A
 %09public 
@@ -786,171 +786,6 @@
 %0A%09%7D%0A
-%09%0A%09public void step(SimState state) %7B%0A%09%09ForestSim fs = (ForestSim)state;%0A%09%09setLandUse(fs.random.nextDouble());%0A%09%09lu.addDoubleAttribute(%22Land Use%22, getLandUse());%0A%09%7D%0A
 %7D%0A

Update Agent.java