de.cesr.sesamgim.init
Class GDefaultModelInitialiser<AgentT extends GimMilieuAgent<AgentT>>

java.lang.Object
  extended by de.cesr.sesamgim.init.GDefaultModelInitialiser<AgentT>
All Implemented Interfaces:
GimModelInitialiser<AgentT>
Direct Known Subclasses:
GPlzModelInitialiser

public class GDefaultModelInitialiser<AgentT extends GimMilieuAgent<AgentT>>
extends Object
implements GimModelInitialiser<AgentT>

Provides methods to initialise the simulation model. Uses the the initialisers defined in GInitialisersPa. Performs the initialisation only in case the parameter is not null. Considered parameters:


Constructor Summary
GDefaultModelInitialiser()
           
 
Method Summary
 ArrayList<GimGroupContext<AgentT>> getGroupContexts()
          Provides a list of all group contexts)
 Collection<AgentT> initAgents()
          Inits agents and also groups context whose number depends on the number of agents.
 void initAll()
          Initialises the entire simulation model (entire context hierarchy and agents).
 void initAreas()
          Initialises area contexts.
 void initMarketCells()
          Init market cell contexts.
 void setGroupContexts(ArrayList<GimGroupContext<AgentT>> gcontexts)
          Sets a list of all group contexts)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GDefaultModelInitialiser

public GDefaultModelInitialiser()
Method Detail

initAll

public void initAll()
Description copied from interface: GimModelInitialiser
Initialises the entire simulation model (entire context hierarchy and agents).

Specified by:
initAll in interface GimModelInitialiser<AgentT extends GimMilieuAgent<AgentT>>
See Also:
GimModelInitialiser.initAll()

initAreas

public void initAreas()
Description copied from interface: GimModelInitialiser
Initialises area contexts. Needs to call GManager.getMan().checkParameterSettingConsistency();!

Specified by:
initAreas in interface GimModelInitialiser<AgentT extends GimMilieuAgent<AgentT>>
See Also:
GimModelInitialiser.initAreas()

initMarketCells

public void initMarketCells()
Description copied from interface: GimModelInitialiser
Init market cell contexts.

Specified by:
initMarketCells in interface GimModelInitialiser<AgentT extends GimMilieuAgent<AgentT>>
See Also:
GimModelInitialiser.initMarketCells()

initAgents

public Collection<AgentT> initAgents()
Description copied from interface: GimModelInitialiser
Inits agents and also groups context whose number depends on the number of agents.

Specified by:
initAgents in interface GimModelInitialiser<AgentT extends GimMilieuAgent<AgentT>>
See Also:
GimModelInitialiser.initAgents()

setGroupContexts

public void setGroupContexts(ArrayList<GimGroupContext<AgentT>> gcontexts)
Description copied from interface: GimModelInitialiser
Sets a list of all group contexts)

Specified by:
setGroupContexts in interface GimModelInitialiser<AgentT extends GimMilieuAgent<AgentT>>
See Also:
GimModelInitialiser.setGroupContexts(java.util.ArrayList)

getGroupContexts

public ArrayList<GimGroupContext<AgentT>> getGroupContexts()
Description copied from interface: GimModelInitialiser
Provides a list of all group contexts)

Specified by:
getGroupContexts in interface GimModelInitialiser<AgentT extends GimMilieuAgent<AgentT>>
See Also:
GimModelInitialiser.getGroupContexts()