Simulation

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 members

Concrete methods

Extension method from Simulation

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.

infix def withDuration(duration: Long): Simulation
Extension method from Simulation

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.

Extension method from Simulation

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.

infix def withSeed(seed: Long): Simulation
Extension method from Simulation

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.

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product