scenic.core.dynamics.scenarios
Dynamic scenarios.
Summary of Module Members
Classes
Internal class for scenarios which can execute during dynamic simulations. |
Member Details
- class DynamicScenario(*args, **kwargs)[source]
Bases:
Invocable
Internal class for scenarios which can execute during dynamic simulations.
Provides additional information complementing
Scenario
, which originally only supported static scenarios. The two classes should probably eventually be merged.- classmethod _requiresArguments()[source]
Whether this scenario cannot be instantiated without arguments.
- _prepare(delayPreconditionCheck=False)[source]
Prepare the scenario for execution, executing its setup block.
- _step()[source]
Execute the (already-started) scenario for one time step.
- Returns:
None
if the scenario will continue executing; otherwise a string describing why it has terminated.
- _addRequirement(ty, reqID, req, line, name, prob)[source]
Save a requirement defined at compile-time for later processing.