reset static method
Resets all context for cosimulation.
Note that any Cosims already built will need to be reregistered via cosimRegister (which is automatically called when build is called).
Implementation
static Future<void> reset() async {
_registreeUniquifier = Uniquifier();
_registrees.clear();
try {
await _socket
?.close()
.then((_) => _socket?.destroy())
.catchError(_socketErrorHandler);
} on Exception {
logger?.finest(
'Failed to close and/or destroy socket during Cosim.reset()');
}
_enableLogger = false;
_socket = null;
}