Stochastic simulation framework for metapopulation modeling.