massim.framework
Interface SimulationAgent

All Known Subinterfaces:
UniqueSimulationAgent
All Known Implementing Classes:
AbstractSimulationAgent, XMLSocketSimulationAgent

public interface SimulationAgent

This interface must be implemented by every object that is used in simulation as an agent.


Method Summary
 java.util.concurrent.Future<Action> concurrentGetAction(Perception perception)
          Concurrent version of getAction.
 Action getAction(Perception p)
          Ask the agent to act, based a new perception p aswell as other previously received perceptions in that run.
 void remove()
          Tell an agent that it was removed from the simulation and will never act again.
 

Method Detail

getAction

Action getAction(Perception p)
Ask the agent to act, based a new perception p aswell as other previously received perceptions in that run.

Parameters:
p - new perception
Returns:
action the agent wants to perform

remove

void remove()
Tell an agent that it was removed from the simulation and will never act again. Calling remove will also invalidate the agents knowledge about the world.


concurrentGetAction

java.util.concurrent.Future<Action> concurrentGetAction(Perception perception)
Concurrent version of getAction.

Parameters:
perception -
Returns:


Copyright © 2011. All Rights Reserved.