Simulation companion object. It provides a dsl for creating and configuring a simulation.
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Simulation.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Creates a new simulation instance with default values.
Creates a new simulation instance with default values.
Attributes
- Returns
-
A new simulation instance with default values for duration and seed.
Extensions
Extensions
Sets the environment for the simulation and returns a SimulationConfig.
Sets the environment for the simulation and returns a SimulationConfig.
Value parameters
- validEnv
-
the valid environment to set for the simulation.
Attributes
- Returns
-
a new SimulationConfig instance with the specified valid environment.
Sets the duration of the simulation in ticks.
Sets the duration of the simulation in ticks.
Value parameters
- duration
-
The duration of the simulation in ticks.
Attributes
- Returns
-
A new simulation instance with the specified duration.
Sets the environment for the simulation and returns a SimulationConfig.
Sets the environment for the simulation and returns a SimulationConfig.
Value parameters
- validEnv
-
the valid environment to set for the simulation.
Attributes
- Returns
-
a new SimulationConfig instance with the specified valid environment.
Sets the seed for the random number generator.
Sets the seed for the random number generator.
Value parameters
- seed
-
The seed for the random number generator.
Attributes
- Returns
-
A new simulation instance with the specified seed.