biosim.core.sim
Class Simulation

java.lang.Object
  extended by sim.engine.SimState
      extended by biosim.core.sim.Simulation
All Implemented Interfaces:
java.io.Serializable

public class Simulation
extends sim.engine.SimState

See Also:
Serialized Form

Field Summary
 java.util.ArrayList<Body> bodies
           
 java.util.ArrayList<sim.util.Double2D> bodyOrientations
           
 Environment env
           
 sim.field.continuous.Continuous2D field2D
           
 java.util.ArrayList<Logger> loggers
           
 java.util.ArrayList<Obstacle> obstacles
           
 java.util.ArrayList<java.lang.String> poi
           
 double resolution
           
 boolean toroidal
           
 
Fields inherited from class sim.engine.SimState
cleaningAsynchronous, random, schedule
 
Constructor Summary
Simulation(long seed)
           
 
Method Summary
 void addLogger(Logger logger)
           
 void finish()
           
 boolean getBodyOrientation(Body b, sim.util.MutableDouble2D rv)
           
 boolean setObjectLocation(java.lang.Object obj, sim.util.Double2D loc)
           
 void start()
           
 
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
 

Field Detail

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
Constructor Detail

Simulation

public Simulation(long seed)
Method Detail

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)