private void Connect(Terminal T, Node V) { if (V != T.ConnectedTo) { T.ConnectTo(V); } }
private void Connect(Terminal T, Node V) { if (V != T.ConnectedTo) { T.ConnectTo(V); if (V != null) { Log.WriteLine(MessageType.Verbose, "Terminal '" + T.ToString() + "' connected to node '" + V.ToString() + "'"); } else { Log.WriteLine(MessageType.Verbose, "Terminal '" + T.ToString() + "' disconnected"); } } }
public void ConnectTo(Node P, Node G, Node K) { p.ConnectTo(P); g.ConnectTo(G); k.ConnectTo(K); }
/// <summary> /// Connect the terminal of this port. /// </summary> /// <param name="N"></param> public void ConnectTo(Node N) { Terminal.ConnectTo(N); }
private void Connect(Terminal T, Node V) { if (V != T.ConnectedTo) { T.ConnectTo(V); if (V != null) Log.WriteLine(MessageType.Verbose, "Terminal '" + T.ToString() + "' connected to node '" + V.ToString() + "'"); else Log.WriteLine(MessageType.Verbose, "Terminal '" + T.ToString() + "' disconnected"); } }