Agent Generator
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
agent Factory
builds one agent; also the right place to position it
time Until First
time until the first agent is created
time Between
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
max Agents
maximum number of agents to create
time Of Last
simulated time after which no further agents are created
activation Priority
tie-break priority for the activation event
name
optional name for the generator