de.cesr.sesamgim.popdyn
Interface GimAgentVariationCalculator

All Known Implementing Classes:
GAgentVariationCalculator

public interface 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.


Method Summary
 int getNumAgentsToInit(GimMilieuContext<?> mileu)
          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
 

Method Detail

init

void init(Calendar cal)
calculates and saves all agents to deleted or initialized

Parameters:
cal -

getNumAgentToDelete

int getNumAgentToDelete(GimMilieuContext<?> milieu)
gives the number of agents that should be deleted in the given milieu

Parameters:
mc - the market cell in which agents should be deleted
milieu - the milieu in which agents should be deleted
Returns:
the number of agents to be deleted

getNumAgentsToInit

int getNumAgentsToInit(GimMilieuContext<?> mileu)
gives the number of agents that should be initialized in the given milieu

Parameters:
mc - the market cell in which agents should be initialized
milieu - the milieu in which agents should be initialized
Returns:
the number of agents to be initialized