TLDR: Learn how the Simulator
API works, and you’ll be able to use it, at your own risk. Consider to instead use SimulationSupport
instead.
Detailed write-up:
The
Simulator
is a low level utility. Use it at your own risk.
SimulationSupport
is a high-level utility to drive forward the simulation, and hides details that are not relevant to the average user.
The Simulator
offers plenty of APIs to inspect the current run-time state, but also drive the simulation state forward.
However:
- You don’t usually create scopes outside of the simulator (ref)
- You often times need to reference parent scopes or things will blow up: