de.cesr.sesamgim.init.agent
Class GGroupAreaAgentInitialiser<AgentType extends GimGroupAgent<AgentType>>

java.lang.Object
  extended by de.cesr.sesamgim.init.agent.GAreaAgentInitialiser<AgentType>
      extended by de.cesr.sesamgim.init.agent.GGroupAreaAgentInitialiser<AgentType>
All Implemented Interfaces:
GimAgentInitialiser<AgentType>, GimAgentPlacingInitialiser<AgentType>

public class GGroupAreaAgentInitialiser<AgentType extends GimGroupAgent<AgentType>>
extends GAreaAgentInitialiser<AgentType>

SesamGIM - Geographical Initialisation for Milieu Agents For Models that use GimGroupContexts.


Field Summary
 
Fields inherited from class de.cesr.sesamgim.init.agent.GAreaAgentInitialiser
format, milieuMap, randomService
 
Constructor Summary
GGroupAreaAgentInitialiser()
           
 
Method Summary
protected  boolean initAgentsPerUpdatableContext(Collection<AgentType> agents, GimAreaContext<AgentType> area, GimUpdatableContext<AgentType> mc)
           
 void placeAgent(GimAreaContext<AgentType> area, GimMarketCellContext<AgentType> mc, AgentType agent)
           
 void placeAgentInGroupContext(GimGroupAgent<AgentType> agent, GimAreaContext<? super AgentType> area)
          Determines the coordinates of the given agent near the given GGroupContext using GMilieuPa.STD_DEV_PLACE_AGENTS.
 
Methods inherited from class de.cesr.sesamgim.init.agent.GAreaAgentInitialiser
adaptMilieuSums, calculateAgentSums, findPlaceExtending, getGroupIS, initAgents, initialiseGroups, logGroupContexts, logGroupContextsAsTotal, placeAgent, placeAgentNearMarketCell, placeGroupContext, placeGroupContextOnRadius, processAgentNumberUnits, setGroupIS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GGroupAreaAgentInitialiser

public GGroupAreaAgentInitialiser()
Method Detail

initAgentsPerUpdatableContext

protected boolean initAgentsPerUpdatableContext(Collection<AgentType> agents,
                                                GimAreaContext<AgentType> area,
                                                GimUpdatableContext<AgentType> mc)
Overrides:
initAgentsPerUpdatableContext in class GAreaAgentInitialiser<AgentType extends GimGroupAgent<AgentType>>
Parameters:
agents -
area -
mc -
Returns:

placeAgent

public void placeAgent(GimAreaContext<AgentType> area,
                       GimMarketCellContext<AgentType> mc,
                       AgentType agent)
Parameters:
area -
mc -
agent -

placeAgentInGroupContext

public void placeAgentInGroupContext(GimGroupAgent<AgentType> agent,
                                     GimAreaContext<? super AgentType> area)
Determines the coordinates of the given agent near the given GGroupContext using GMilieuPa.STD_DEV_PLACE_AGENTS. Tries to locate the agent within the area.

Parameters:
agent - the agent to place
area - the area the household agent shall be placed within.