massim.framework
Interface Controller

All Superinterfaces:
Component
All Known Implementing Classes:
ConfigurationDelivererController, DefaultController

public interface Controller
extends Component

This class is meant to regulate a simulation. It provides simulation configuration but in a later more complex approach it might also administrate a running simulation.


Method Summary
 java.util.concurrent.Future<SimulationConfiguration> concurrentGetSimulationConfiguration()
          non-blocking version of getSimulationConfiguration, return a Future object.
 ControllerReturnValue controlSimulation(Simulation simulation)
          This method will be called whenever the controller may influence the simulation in any way.
 SimulationConfiguration getSimulationConfiguration()
          Retrieve simulation configuration.
 
Methods inherited from interface massim.framework.Component
start, stop
 

Method Detail

getSimulationConfiguration

SimulationConfiguration getSimulationConfiguration()
Retrieve simulation configuration.

Returns:
simulation configuration

concurrentGetSimulationConfiguration

java.util.concurrent.Future<SimulationConfiguration> concurrentGetSimulationConfiguration()
non-blocking version of getSimulationConfiguration, return a Future object.

Returns:
future of simulation configuration

controlSimulation

ControllerReturnValue controlSimulation(Simulation simulation)
This method will be called whenever the controller may influence the simulation in any way. If you plan to change the simulation while it is running (for agent development purposes for example) then you should put something non-trivial in this method.

Parameters:
simulation -
Returns:
true iff the controller doesn't want to abort the simulation


Copyright © 2011. All Rights Reserved.