public class GridSimulationAgent extends SimulationAgentExtend
Constructor and Description |
---|
GridSimulationAgent()
The constructor instantiates the agentstate.
|
Modifier and Type | Method and Description |
---|---|
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) |
moveAction
getAgent, setAgent
public GridSimulationAgent()
public AgentState getAgentState()
SimulationAgent
public void setAgentParameter(AgentParameter agentpar)
SimulationAgent
setAgentParameter
in interface SimulationAgent
setAgentParameter
in class AbstractSimulationAgent
agentpar
- agent parameters to usepublic Perception createPerception(WorldState simstate, AgentState[] agentstates)
public void processAction(Action a, WorldState simstate, AgentState[] agentstates)
public InitialStickyPerception createInitialPerception(WorldState simstate, AgentState[] agentstates)
public FinalPerception createFinalPerception(WorldState simstate, AgentState[] agentstates)
public void updateWorldState(WorldState simstate, SimulationAgent[] agents)
updateWorldState
in class SimulationAgentExtend
Copyright © 2013. All Rights Reserved.