de.cesr.sesamgim.popdyn
Class GAgentVariationCalculator

java.lang.Object
  extended by de.cesr.sesamgim.popdyn.GAgentVariationCalculator
All Implemented Interfaces:
GimAgentVariationCalculator

public class GAgentVariationCalculator
extends Object
implements GimAgentVariationCalculator

SesamGIM - Geographical Initialisation for Milieu Agents This class is part of the dynamic population and calculates the number of agents to be deleted or initialized.


Constructor Summary
GAgentVariationCalculator()
          Constructor
GAgentVariationCalculator(GimUpdatableContext<?> mc)
          Constructor
 
Method Summary
 int getNumAgentsToInit(GimMilieuContext<?> milieu)
          gives the number of agents that should be initialized in the given milieu
 int getNumAgentToDelete(GimMilieuContext<?> milieu)
          gives the number of agents that should be deleted in the given milieu
 void init(Calendar cal)
          calculates and saves all agents to deleted or initialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GAgentVariationCalculator

public GAgentVariationCalculator()
Constructor


GAgentVariationCalculator

public GAgentVariationCalculator(GimUpdatableContext<?> mc)
Constructor

Parameters:
uc - market cell for which the calculator is working
Method Detail

init

public void init(Calendar cal)
Description copied from interface: GimAgentVariationCalculator
calculates and saves all agents to deleted or initialized

Specified by:
init in interface GimAgentVariationCalculator
See Also:
de.cesr.sesamgim.popdyn.GimAgentVariationCalculator#init()

getNumAgentToDelete

public int getNumAgentToDelete(GimMilieuContext<?> milieu)
Description copied from interface: GimAgentVariationCalculator
gives the number of agents that should be deleted in the given milieu

Specified by:
getNumAgentToDelete in interface GimAgentVariationCalculator
Parameters:
milieu - the milieu in which agents should be deleted
Returns:
the number of agents to be deleted
See Also:
GimAgentVariationCalculator.getNumAgentToDelete(de.cesr.sesamgim.context.GimMilieuContext)

getNumAgentsToInit

public int getNumAgentsToInit(GimMilieuContext<?> milieu)
Description copied from interface: GimAgentVariationCalculator
gives the number of agents that should be initialized in the given milieu

Specified by:
getNumAgentsToInit in interface GimAgentVariationCalculator
Returns:
the number of agents to be initialized
See Also:
GimAgentVariationCalculator.getNumAgentsToInit(de.cesr.sesamgim.context.GimMilieuContext)