connect method

  1. @override
Future<CosimConnection> connect()
override

Initializes the connection to cosimulation.

Implementation

@override
Future<CosimConnection> connect() async {
  Cosim.generateConnector(directory: directory, enableLogging: enableLogging);

  return _connectToCosim(
    startCosimProcess,
    directory,
    throwOnUnexpectedEnd: throwOnUnexpectedEnd,
  );
}