public TopologyProvider(ITopologyBuilder topologyBuilder, ILoadFlow loadFlow) { Provider.Instance.TopologyProvider = this; Provider.Instance.MeasurementProvider.DiscreteMeasurementDelegate += DiscreteMeasurementDelegate; this.loadFlow = loadFlow; this.topologyBuilder = topologyBuilder; transactionFlag = TransactionFlag.NoTransaction; Topology = CreateTopology(); loadFlow.UpdateLoadFlow(Topology); }
public void DiscreteMeasurementDelegate() { loadFlow.UpdateLoadFlow(Topology); ProviderTopologyDelegate?.Invoke(Topology); ProviderTopologyConnectionDelegate?.Invoke(Topology); }