AgentGenerator

protected inner class AgentGenerator<A : AgentModel.Agent>(agentFactory: () -> A, timeUntilFirst: RVariableIfc, timeBetween: RVariableIfc, maxAgents: Long = Long.MAX_VALUE, timeOfLast: Double = Double.POSITIVE_INFINITY, var activationPriority: Int = KSLEvent.DEFAULT_PRIORITY + 1, name: String? = null) : EventGenerator(source)

Schedules the creation of agents over time and activates each agent's default process. Mirror of ksl.modeling.entity.ProcessModel.EntityGenerator but produces Agent instances. The agent must have defaultProcess configured.

Constructors

Link copied to clipboard
constructor(agentFactory: () -> A, timeUntilFirst: RVariableIfc, timeBetween: RVariableIfc, maxAgents: Long = Long.MAX_VALUE, timeOfLast: Double = Double.POSITIVE_INFINITY, activationPriority: Int = KSLEvent.DEFAULT_PRIORITY + 1, name: String? = null)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
protected open override fun generate()