ConnectionExtractor constructor

ConnectionExtractor(
  1. Iterable<BridgeModule> modules, {
  2. bool includeInterfaceConnections = true,
})

Creates a new ConnectionExtractor for the given modules which will then identify connections between them.

Implementation

ConnectionExtractor(Iterable<BridgeModule> modules,
    {this.includeInterfaceConnections = true})
    : modules = Set.unmodifiable(modules) {
  // algorithm:
  //  - first, find all full interface-to-interface connections
  //  - then, the remainder can be ad-hoc
  if (includeInterfaceConnections) {
    _findInterfaceConnections();
  }
  _findAdHocConnections();
}