DataManager

model.data.DataManager
case class DataManager(state: SimulationState)

A data manager that provides access to simulation state and computed metrics.

The DataManager serves as a facade for accessing and computing aggregate information from the current simulation state, particularly financial metrics related to games and customers.

Value parameters

state

the current simulation state containing games and customers

Attributes

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

Members list

Value members

Concrete methods

Calculates the total bankroll across all customers in the current simulation state.

Calculates the total bankroll across all customers in the current simulation state.

Attributes

Returns

the sum of bankrolls from all customers, or 0.0 if no customers exist

def currentGamesBankroll: Double

Calculates the total bankroll across all games in the current simulation state.

Calculates the total bankroll across all games in the current simulation state.

Attributes

Returns

the sum of bankrolls from all games, or 0.0 if no games exist

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product