PowerDeliveryElement Connect Method (Bus, IEnumerable Int32 , Bus, IEnumerable Int32 )ElecNetKit Documentation
Connects the PowerDeliveryElement on the phases in bus1AndLinePhases to the same phases on bus1, and to the correspondingly-indexed phases bus2Phases on bus2.

Namespace: ElecNetKit.NetworkModelling
Assembly: ElecNetKit.Core (in ElecNetKit.Core.dll) Version: 1.1.4771.27370 (1.1.0.0)
Syntax

public void Connect(
	Bus bus1,
	IEnumerable<int> bus1AndLinePhases,
	Bus bus2,
	IEnumerable<int> bus2Phases
)

Parameters

bus1
Type: ElecNetKit.NetworkModelling Bus
The first Bus to connect to. Shares common phases with the PowerDeliveryElement.
bus1AndLinePhases
Type: OnlineSystem.Collections.Generic IEnumerable OnlineInt32 
The common phases to connect between the PowerDeliveryElement and the Bus.
bus2
Type: ElecNetKit.NetworkModelling Bus
The second Bus to connect to.
bus2Phases
Type: OnlineSystem.Collections.Generic IEnumerable OnlineInt32 
Phase connections for bus2.
Examples

The following code connects the PowerDeliveryElement to bus1 and bus2, with the following phasing:
// key: line phase -> bus1 phase, bus2 phase 
// 1 -> 1, 2 
// 2 -> 2, 3 
// 3 -> 3, 1
myPowerDeliveryElement.Connect(bus1, new[] {1,2,3}, bus2, new[] {2,3,1});
See Also