WeightedManager

model.managers.WeightedManager
See theWeightedManager companion object
trait WeightedManager[C] extends BaseManager[C]

A manager that can be tuned using the * operator

Type parameters

C

the customer concrete type

Attributes

Companion
object
Graph
Supertypes
trait BaseManager[C]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def updatedWeight(weight: Double): WeightedManager[C]

Value parameters

weight

the new value for weight

Attributes

Returns

a new manager with the given weight

def weight: Double

Attributes

Returns

the weight which will be applied when using the update method

Inherited and Abstract methods

def update(slice: C): C

Updates a given slice of the simulation state.

Updates a given slice of the simulation state.

This method encapsulates the core logic of the manager, transforming an input state into an updated state.

Value parameters

slice

The input state slice to be updated.

Attributes

Returns

The updated state slice.

Inherited from:
BaseManager