de.cesr.sesamgim.init.agent
Class GPlzAreaAgentInitialiser<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>
All Implemented Interfaces:
GimAgentInitialiser<AgentType>, GimAgentPlacingInitialiser<AgentType>
Direct Known Subclasses:
GPlzWiseAreaAgentInitialiser

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

SesamGIM - Geographical Initialisation for Milieu Agents


Field Summary
protected  GimUpdatableContext<AgentType> cachedPlz
           
protected  cern.jet.random.AbstractDistribution cachedXDistribution
           
protected  cern.jet.random.AbstractDistribution cachedYDistribution
           
 
Fields inherited from class de.cesr.sesamgim.init.agent.GAreaAgentInitialiser
format, milieuMap, randomService
 
Constructor Summary
GPlzAreaAgentInitialiser()
           
 
Method Summary
protected  void initAgentPlacingDistributions(com.vividsolutions.jts.geom.Envelope env)
          Initialises distributions for placing agents.
 Collection<AgentType> initAgents(GimModelInitialiser<AgentType> gimInitialiser)
           
 void placeAgent(GimAreaContext<AgentType> area, GimMarketCellContext<AgentType> mc, AgentType agent)
           
 void placeAgentUniformly(AgentType agent, GimAreaContext<? super AgentType> area, GimUpdatableContext<AgentType> uc)
          Searches for a point (mostly for agent positions) uniformly within the given area.
 
Methods inherited from class de.cesr.sesamgim.init.agent.GAreaAgentInitialiser
adaptMilieuSums, calculateAgentSums, findPlaceExtending, getGroupIS, initAgentsPerUpdatableContext, 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
 

Field Detail

cachedXDistribution

protected cern.jet.random.AbstractDistribution cachedXDistribution

cachedYDistribution

protected cern.jet.random.AbstractDistribution cachedYDistribution

cachedPlz

protected GimUpdatableContext<AgentType extends GimMilieuAgent<AgentType>> cachedPlz
Constructor Detail

GPlzAreaAgentInitialiser

public GPlzAreaAgentInitialiser()
Method Detail

initAgents

public Collection<AgentType> initAgents(GimModelInitialiser<AgentType> gimInitialiser)
Specified by:
initAgents in interface GimAgentInitialiser<AgentType extends GimMilieuAgent<AgentType>>
Overrides:
initAgents in class GAreaAgentInitialiser<AgentType extends GimMilieuAgent<AgentType>>
Returns:
See Also:
GAreaAgentInitialiser.initAgents(de.cesr.sesamgim.init.GimModelInitialiser)

placeAgent

public void placeAgent(GimAreaContext<AgentType> area,
                       GimMarketCellContext<AgentType> mc,
                       AgentType agent)
See Also:
de.cesr.sesamgim.init.agent.GAreaAgentInitialiser#placeAgent(de.cesr.sesamgim.context.GimAreaContext, de.cesr.sesamgim.context.GimMarketCellContext, de.cesr.sesamgim.init.agent.GimMilieuAgent)

placeAgentUniformly

public void placeAgentUniformly(AgentType agent,
                                GimAreaContext<? super AgentType> area,
                                GimUpdatableContext<AgentType> uc)
Searches for a point (mostly for agent positions) uniformly within the given area. Checks GMilieuPa.ALLOW_AGENTS_TO_LEAVE_AREA_BOUNDARIES, GMilieuPa.ALLOW_AGENTS_TO_LEAVE_INHABITED_AREAS and GMilieuPa.ALLOW_AGENTS_TO_LEAVE_MC_BOUNDARIES.

Parameters:
agent -
area -
uc -

initAgentPlacingDistributions

protected void initAgentPlacingDistributions(com.vividsolutions.jts.geom.Envelope env)
Initialises distributions for placing agents.

Parameters:
env -