Class Simulation

java.lang.Object
org.baseagent.sim.Simulation

public class Simulation extends Object
  • Constructor Details

    • Simulation

      public Simulation()
  • Method Details

    • setUniverse

      public void setUniverse(Universe universe)
    • getUniverse

      public Universe getUniverse()
    • removeUniverse

      public void removeUniverse(Universe universe)
    • setCommunicator

      public void setCommunicator(Communicator communicator)
    • getCommunicator

      public Communicator getCommunicator()
    • getSchedulers

      public List<Scheduler> getSchedulers()
    • addScheduler

      public void addScheduler(Scheduler scheduler)
    • removeSchedule

      public void removeSchedule(Scheduler scheduler)
    • getDataCollectors

      public List<DataCollector> getDataCollectors()
    • getProperties

      public Map<String,Object> getProperties()
    • setProperties

      public void setProperties(Map<String,Object> props)
    • add

      public void add(SimulationComponent simulatee)
    • remove

      public void remove(SimulationComponent simulatee)
    • getAgents

      public List<Agent> getAgents()
    • getBeacons

      public List<Beacon> getBeacons()
    • getPatches

      public List<Patch> getPatches()
    • getHasSteps

      public List<HasStep> getHasSteps()
    • getMessageListeners

      public List<MessageListener> getMessageListeners()
    • getMetrics

      public List<Metric> getMetrics()
    • addSimulationListener

      public void addSimulationListener(SimulationListener listener)
    • removeSimulationListener

      public void removeSimulationListener(SimulationListener listener)
    • endWhen

      public void endWhen(Predicate<Simulation> endCondition)
    • beforeEachStep

      public void beforeEachStep(Consumer<Simulation> function)
    • afterEachStep

      public void afterEachStep(Consumer<Simulation> function)
    • getStepTime

      public long getStepTime()
    • reset

      public void reset()
    • setDelayAfterEachStep

      public void setDelayAfterEachStep(int millis)
    • getDelayAfterEachStep

      public long getDelayAfterEachStep()
    • isPaused

      public boolean isPaused()
    • isRunning

      public boolean isRunning()
    • isStopped

      public boolean isStopped()
    • start

      public void start()
    • pause

      public void pause()
    • resume

      public void resume()
    • stop

      public void stop()
    • stepTimeInterval

      public boolean stepTimeInterval(long interval)