marvis.mobility_input.mobility_input
Base abstract class for co-simulation positional input.
Classes
A MobilityInput can be used to control multiple node's positions via an external positional simulation. |
- class marvis.mobility_input.mobility_input.MobilityInput(name)[source]
Bases:
object
A MobilityInput can be used to control multiple node’s positions via an external positional simulation.
- Parameters
name (str) – The name of the MobilityInput. This does not have to be unique. It is used for logging debugging purposes.
- name
The name of the input.
- node_mapping
The mapping of simulation nodes to IDs identifying the nodes in the external simulation interface
- prepare(simulation)[source]
Prepare the external simulation if neccessary.
- Parameters
simulation (
Simulation
) – The simulation that is going to run.
Inheritance Diagramm