de.cesr.sesamgim.init.agent
Class GGroupAreaAgentInitialiser<AgentType extends GimGroupAgent <AgentType>>
java.lang.Object
de.cesr.sesamgim.init.agent.GAreaAgentInitialiser <AgentType>
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 GimGroupContext
s.
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
GGroupAreaAgentInitialiser
public GGroupAreaAgentInitialiser ()
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 placearea
- the area the household agent shall be placed within.