liveBook · Manning

Simulation runtime

As explained in Functional Design and Architecture: Examples in Haskell

A simulation runtime is the state maintained by a simulator while it processes simulation requests.

A simulation runtime is the simulator’s mutable state while it processes requests. An actor-like worker owns this state and responds to simulation commands. section 8.2.1

Running a simulation

Create the runtime, start its worker, submit a LogicControl through SimulatorControl, wait for the result, then stop the simulator and inspect its state.

How Functional Design and Architecture: Examples in Haskell covers it

How deep it goes
Defines the runtime fields and worker interaction, while deferring broader state, concurrency, and model interconnection issues.
Examples
Uses a Haskell runtime record, an actor worker, MVar requests, and a lifecycle test.
What it assumes
Assumes an elaborated simulator protocol and introduces runtime state, worker processing, and simulator control.
What you can do after
Build it from scratch by pairing SimulatorRuntime with a worker and SimulatorControl interface.
How it connects
Connects actor-like simulation, request–response communication, concurrency, and control structures.

This explainer was generated by Manning's knowledge graph from the text of Functional Design and Architecture: Examples in Haskell. The section links point to the parts of the book it draws on.