SimulationConfig

io.github.srs.config.SimulationConfig
final case class SimulationConfig[E <: EnvironmentParameters](simulation: Simulation, environment: E)

A configuration for a simulation, containing the simulation and its environment.

Type parameters

E

the type of environment parameters

Value parameters

environment

the environment in which the simulation runs

simulation

the simulation instance

Attributes

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

Members list

Value members

Concrete methods

infix def run: IO[Option[SimulationState]]
Extension method from io.github.srs.config

Runs the simulation in headless mode if a duration is specified.

Runs the simulation in headless mode if a duration is specified.

Attributes

Returns

an IO effect that yields an Option containing the final SimulationState if a duration is specified or None if the simulation runs indefinitely.

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product