Crate mosaik_api

Source

Modules§

mosaik_protocol
JSON serialization and deserialization for Mosaik messages. And handling of Mosaik requests.
tcp
The async TCP-Manager for the communication between Mosaik and the simulators.
types
Mosaik types as defined in the Mosaik API

Traits§

MosaikApi
The MosaikApi trait defines the interface for a Mosaik simulator API. Errors will result in a Failure Response being sent to Mosaik containing the Error’s message and/or Stack Trace.

Functions§

run_simulation
Main calls this function with the simulator that should run and the direction with an address for the connection to mosaik.