AgentFactory

interface AgentFactory

Creates the population of agents.

Inheritors

Functions

Link copied to clipboard
abstract fun createAgents(share: Double, zones: List<AggLocation>, populateBufferArea: Boolean, rng: Random): List<MobiAgent>

Initialize population based on a share of the existing population. Assigns socio-demographic features, and home, work, and school locations.

abstract fun createAgents(nFocus: Int, zones: List<AggLocation>, populateBufferArea: Boolean, rng: Random): List<MobiAgent>

Initialize population with fixed number of agents. Assigns socio-demographic features, and home, work, and school locations.