SpawningStrategy

model.entities.spawner.SpawningStrategy

Base trait for all customer spawning strategies.

Defines the interface for determining how many customers should be spawned at any given time point in the simulation. Implementations can provide various distribution patterns such as constant rates, gaussian curves, or step functions.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def customersAt(time: Double): Int

Calculates the number of customers to spawn at the given time.

Calculates the number of customers to spawn at the given time.

Value parameters

time

the current simulation time point

Attributes

Returns

the number of customers to spawn (must be non-negative)

Concrete methods

protected def hourPerDay: Double