AgentGenerator

constructor(agentFactory: () -> A, timeUntilFirst: RVariableIfc, timeBetween: RVariableIfc, context: AgentModel.Context<A>? = null, maxAgents: Long = Long.MAX_VALUE, timeOfLast: Double = Double.POSITIVE_INFINITY, activationPriority: Int = KSLEvent.DEFAULT_PRIORITY + 1, name: String? = null)(source)

Parameters

agentFactory

builds one agent; also the right place to position it

timeUntilFirst

time until the first agent is created

timeBetween

time between successive creations

context

optional context to add each new agent to before activation. Null means the factory is responsible for membership, if any is wanted

maxAgents

maximum number of agents to create

timeOfLast

simulated time after which no further agents are created

activationPriority

tie-break priority for the activation event

name

optional name for the generator