io.github.srs.model.Simulation
See theSimulation companion object
final case class Simulation(
duration:
Option[
Long],
seed:
Option[
Long])
Simulation configuration. It contains the information needed to start a simulation.
Value parameters
-
duration
-
The duration of the simulation in ticks. If None, the simulation will run indefinitely.
-
seed
-
The seed for the random number generator. If None, a random seed will be used.
Attributes
-
Companion
-
object
-
Graph
-
-
Supertypes
-
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
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.
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.
Attributes
-
Inherited from:
-
Product
Attributes
-
Inherited from:
-
Product