de.cesr.sesamgim.init.agent
Class GPlzWiseAreaAgentInitialiser<AgentType extends GimMilieuAgent<AgentType>>

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

public class GPlzWiseAreaAgentInitialiser<AgentType extends GimMilieuAgent<AgentType>>
extends GPlzAreaAgentInitialiser<AgentType>

SesamGIM - Geographical Initialisation for Milieu Agents


Field Summary
 
Fields inherited from class de.cesr.sesamgim.init.agent.GPlzAreaAgentInitialiser
cachedPlz, cachedXDistribution, cachedYDistribution
 
Fields inherited from class de.cesr.sesamgim.init.agent.GAreaAgentInitialiser
format, milieuMap, randomService
 
Constructor Summary
GPlzWiseAreaAgentInitialiser()
           
 
Method Summary
protected  void calculatePlzSums(GimUpdatableContext<AgentType> plz)
           
 void placeAgent(GimAreaContext<AgentType> area, GimUpdatableContext<AgentType> uc, AgentType agent)
           
protected  void processAgentNumberUnits(Collection<AgentType> agents, GimAreaContext<AgentType> area)
          Calculate number of agents per PLZ area for each milieu and intialise agents accordingly.
 
Methods inherited from class de.cesr.sesamgim.init.agent.GPlzAreaAgentInitialiser
initAgentPlacingDistributions, initAgents, placeAgent, placeAgentUniformly
 
Methods inherited from class de.cesr.sesamgim.init.agent.GAreaAgentInitialiser
adaptMilieuSums, calculateAgentSums, findPlaceExtending, getGroupIS, initAgentsPerUpdatableContext, initialiseGroups, logGroupContexts, logGroupContextsAsTotal, placeAgentNearMarketCell, placeGroupContext, placeGroupContextOnRadius, setGroupIS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPlzWiseAreaAgentInitialiser

public GPlzWiseAreaAgentInitialiser()
Method Detail

processAgentNumberUnits

protected void processAgentNumberUnits(Collection<AgentType> agents,
                                       GimAreaContext<AgentType> area)
Calculate number of agents per PLZ area for each milieu and intialise agents accordingly.

Overrides:
processAgentNumberUnits in class GAreaAgentInitialiser<AgentType extends GimMilieuAgent<AgentType>>
Parameters:
agents -
area -

calculatePlzSums

protected void calculatePlzSums(GimUpdatableContext<AgentType> plz)
Parameters:
plz -

placeAgent

public void placeAgent(GimAreaContext<AgentType> area,
                       GimUpdatableContext<AgentType> uc,
                       AgentType agent)
Specified by:
placeAgent in interface GimAgentPlacingInitialiser<AgentType extends GimMilieuAgent<AgentType>>
Overrides:
placeAgent in class GAreaAgentInitialiser<AgentType extends GimMilieuAgent<AgentType>>
Parameters:
area -
mc -
agent -