ConstantStrategy

model.entities.spawner.ConstantStrategy
case class ConstantStrategy(rate: Int) extends SpawningStrategy

A spawning strategy that maintains a constant rate of customer creation.

Simple strategy that spawns the same number of customers at every time point, useful for maintaining steady simulation load or baseline customer flow.

Value parameters

rate

the constant number of customers to spawn per time unit

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override 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)

Definition Classes

Inherited methods

protected def hourPerDay: Double

Attributes

Inherited from:
SpawningStrategy
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product