marvis.scenario
The blueprint for a simulation.
Classes
The scenario is kind of a blueprint for a simulation. |
- class marvis.scenario.Scenario[source]
Bases:
object
The scenario is kind of a blueprint for a simulation.
A scenario can be used the following way:
Example
scenario = Scenario() ... with scenario as simulation: simulation.simulate(simulation_time=60)
- networks
All networks belonging to the scenario.
- workflows
The workflows to be executed.
- simulation
A reference to a simulation (if running).
- visualization
The visualization object
- context
The Context is e.g.used for teardowns.
It is created on simulation start.
- add_network(network)[source]
Add a network to be simulated.
- Parameters
network (
Network
) – The Network to add. It will get prepared on simulation start.
- add_mobility_input(mobility_input)[source]
Add a
MobilityInput
.- Parameters
mobility_input (
MobilityInput
) – The MobilityInput to add. It will get prepared on simulation start.
- set_visualization(visualization)[source]
Sets the new
Visualization
.- Parameters
visualization (
Visualization
) – The new visualization object.
- channels()[source]
Retrieve all channels.
- Returns
All channels of all networks in the current configuration.
- Return type
list of
Channel
Inheritance Diagramm