marvis.simulation
The simulation executable.
Classes
The simulation runs ns-3. |
- class marvis.simulation.Simulation(scenario)[source]
Bases:
object
The simulation runs ns-3. The simulation is described by a
Scenario
which also prepares the simulation. It also takes care of preparing networks and nodes.Do not initialize a simulation yourself. Use the
Scenario
instead!Example
with scenario as simulation: simulation.simulate(simulation_time=60)
- Parameters
scenario (
Scenario
) – The scenario to run the simulation with.
- scenario
The scenario describing the simulation.
- log_directory
The log directory for all logs
- docker_client
A docker runtime client for checking whether there is an influxdb running for monitoring purposes.
- hosts
All hosts of the simulation for mapping in nodes.
This can be used to modify the hosts file.
- started
Indicates whether the simulation is started.
- workflows
The workflows in the simulation.
Determined by the scenario.
Inheritance Diagramm