massim.competition2006
Class GridSimulationAgent

java.lang.Object
  extended by massim.framework.simulation.AbstractSimulationAgent
      extended by massim.gridsimulations.SimulationAgentExtend
          extended by massim.competition2006.GridSimulationAgent
All Implemented Interfaces:
SimulationAgent

public class GridSimulationAgent
extends SimulationAgentExtend

This class deals with the agent state, his actions and perceptions.


Constructor Summary
GridSimulationAgent()
          The constructor instantiates the agentstate.
 
Method Summary
 FinalPerception createFinalPerception(WorldState simstate, AgentState[] agentstates)
           
 InitialStickyPerception createInitialPerception(WorldState simstate, AgentState[] agentstates)
           
 Perception createPerception(WorldState simstate, AgentState[] agentstates)
           
 AgentState getAgentState()
          Retrieve agent state.
 void processAction(Action a, WorldState simstate, AgentState[] agentstates)
           
 void setAgentParameter(AgentParameter agentpar)
          Set agent creation parameter.
 void updateWorldState(WorldState simstate, SimulationAgent[] agents)
           
 
Methods inherited from class massim.gridsimulations.SimulationAgentExtend
moveAction
 
Methods inherited from class massim.framework.simulation.AbstractSimulationAgent
getAgent, setAgent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridSimulationAgent

public GridSimulationAgent()
The constructor instantiates the agentstate.

Method Detail

getAgentState

public AgentState getAgentState()
Description copied from interface: SimulationAgent
Retrieve agent state.

Returns:
corresponding agent state.

setAgentParameter

public void setAgentParameter(AgentParameter agentpar)
Description copied from interface: SimulationAgent
Set agent creation parameter. Implementating this method is useful to know what exact properties this agent might have.

Specified by:
setAgentParameter in interface SimulationAgent
Overrides:
setAgentParameter in class AbstractSimulationAgent
Parameters:
agentpar - agent parameters to use

createPerception

public Perception createPerception(WorldState simstate,
                                   AgentState[] agentstates)

processAction

public void processAction(Action a,
                          WorldState simstate,
                          AgentState[] agentstates)

createInitialPerception

public InitialStickyPerception createInitialPerception(WorldState simstate,
                                                       AgentState[] agentstates)

createFinalPerception

public FinalPerception createFinalPerception(WorldState simstate,
                                             AgentState[] agentstates)

updateWorldState

public void updateWorldState(WorldState simstate,
                             SimulationAgent[] agents)
Specified by:
updateWorldState in class SimulationAgentExtend


Copyright © 2011. All Rights Reserved.