biosim.core.sim
Class Simulation
java.lang.Object
sim.engine.SimState
biosim.core.sim.Simulation
- All Implemented Interfaces:
- java.io.Serializable
public class Simulation
- extends sim.engine.SimState
- See Also:
- Serialized Form
Fields inherited from class sim.engine.SimState |
cleaningAsynchronous, random, schedule |
Methods inherited from class sim.engine.SimState |
addToAsynchronousRegistry, asynchronousRegistry, awakeFromCheckpoint, doLoop, doLoop, job, kill, nameThread, postCheckpoint, preCheckpoint, readFromCheckpoint, readFromCheckpoint, removeFromAsynchronousRegistry, seed, setJob, setSeed, version, writeToCheckpoint, writeToCheckpoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
env
public Environment env
field2D
public sim.field.continuous.Continuous2D field2D
bodies
public java.util.ArrayList<Body> bodies
obstacles
public java.util.ArrayList<Obstacle> obstacles
poi
public java.util.ArrayList<java.lang.String> poi
bodyOrientations
public java.util.ArrayList<sim.util.Double2D> bodyOrientations
loggers
public java.util.ArrayList<Logger> loggers
resolution
public double resolution
toroidal
public boolean toroidal
Simulation
public Simulation(long seed)
addLogger
public void addLogger(Logger logger)
start
public void start()
- Overrides:
start
in class sim.engine.SimState
finish
public void finish()
- Overrides:
finish
in class sim.engine.SimState
getBodyOrientation
public boolean getBodyOrientation(Body b,
sim.util.MutableDouble2D rv)
setObjectLocation
public boolean setObjectLocation(java.lang.Object obj,
sim.util.Double2D loc)