de.cesr.sesamgim.popdyn
Class GPopulationUpdater<AgentType extends GimPopUpdatableAgent<AgentType>>

java.lang.Object
  extended by de.cesr.sesamgim.popdyn.GPopulationUpdater<AgentType>

public class GPopulationUpdater<AgentType extends GimPopUpdatableAgent<AgentType>>
extends Object

SesamGIM - Geographical Initialisation for Milieu Agents This class is part of the dynamic population and conducts the update process


Field Summary
protected  Set<GimAgentBirthDieObserver<AgentType>> agentBirthDieObservers
           
protected  GimAgentPlacingInitialiser<AgentType> agentInitialiser
           
 
Constructor Summary
GPopulationUpdater()
          Constructor - initializes the uniform and gets the classes for the calculator and the agent
 
Method Summary
 void subscribeAgentBirthDieObserver(GimAgentBirthDieObserver<AgentType> observer)
           
 void unsubscribeAgentBirthDieObserver(GimAgentBirthDieObserver<AgentType> observer)
           
 void update(Calendar cal)
          updates the population and deletes and initialize agents as calculated by the calculator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentInitialiser

protected GimAgentPlacingInitialiser<AgentType extends GimPopUpdatableAgent<AgentType>> agentInitialiser

agentBirthDieObservers

protected Set<GimAgentBirthDieObserver<AgentType extends GimPopUpdatableAgent<AgentType>>> agentBirthDieObservers
Constructor Detail

GPopulationUpdater

public GPopulationUpdater()
Constructor - initializes the uniform and gets the classes for the calculator and the agent

Method Detail

update

public void update(Calendar cal)
updates the population and deletes and initialize agents as calculated by the calculator

Parameters:
cal - calendar at which the update should be done

subscribeAgentBirthDieObserver

public void subscribeAgentBirthDieObserver(GimAgentBirthDieObserver<AgentType> observer)
Parameters:
observer -

unsubscribeAgentBirthDieObserver

public void unsubscribeAgentBirthDieObserver(GimAgentBirthDieObserver<AgentType> observer)
Parameters:
observer -