Simulation

io.github.srs.model.Simulation
See theSimulation companion class
object Simulation

Simulation companion object. It provides a dsl for creating and configuring a simulation.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Simulation.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

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

extension (simulation: 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

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.

infix def withSeed(seed: Long): 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.