de.cesr.sesamgim.init.mc
Class GMarketCellInitialiser<AgentType extends GimMilieuAgent<AgentType>>

java.lang.Object
  extended by de.cesr.sesamgim.init.mc.GMarketCellInitialiser<AgentType>
All Implemented Interfaces:
GimMarketCellInitialiser

public class GMarketCellInitialiser<AgentType extends GimMilieuAgent<AgentType>>
extends Object
implements GimMarketCellInitialiser

Requires a GimMcInitialiseService and uses GDefaultMarketCellInitialiseService as default.


Constructor Summary
GMarketCellInitialiser()
           
 
Method Summary
protected  String generateSqlStatement(repast.simphony.context.Context<Object> rootContext)
          Generate the SQL statement to fetch market cell data.
 GimMcInitialiseService<AgentType> getMcInitService()
           
 void initMarketCells()
          Adds the market cells within all area shapes that are sub-contexts of the given main context.
protected  void readMzShapes()
           
 void setMcInitService(GimMcInitialiseService<AgentType> mcInitService)
           
protected  void setupMarketCellObject(GUpdatableContextStructure structure, GimMarketCellContext<AgentType> mc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMarketCellInitialiser

public GMarketCellInitialiser()
Method Detail

initMarketCells

public void initMarketCells()
Description copied from interface: GimMarketCellInitialiser
Adds the market cells within all area shapes that are sub-contexts of the given main context.

Specified by:
initMarketCells in interface GimMarketCellInitialiser
See Also:
de.cesr.sesamgim.init.mc.GimMarketCellInitialiser#initMarketCells(repast.simphony.context.Context)

setupMarketCellObject

protected void setupMarketCellObject(GUpdatableContextStructure structure,
                                     GimMarketCellContext<AgentType> mc)
Parameters:
structure -
mc -

readMzShapes

protected void readMzShapes()

generateSqlStatement

protected String generateSqlStatement(repast.simphony.context.Context<Object> rootContext)
Generate the SQL statement to fetch market cell data. Allows to easily build sub classes that use custom sources of the data. This is sometimes beneficial when the effort to compute the data is very high.

Parameters:
rootContext -
Returns:

getMcInitService

public GimMcInitialiseService<AgentType> getMcInitService()
Returns:
the mcInitService

setMcInitService

public void setMcInitService(GimMcInitialiseService<AgentType> mcInitService)
Parameters:
mcInitService - the mcInitService to set