public DebugScope () { UpdatePeriod = AddPort ("UpdatePeriod", Units.Time, 5); timer = new Timer (Timer_Tick, null, 234, PeriodMillis); UpdatePeriod.ValueChanged += UpdatePeriod_ValueChanged; }
/// <summary> /// Disconnect this port from another port. /// </summary> /// <param name="other"></param> public void DisconnectFrom (Port other) { if (other == null) return; if (this == other) return; connectedPorts.Remove (other); other.connectedPorts.Remove (this); }
/// <summary> /// Connect this port to another port. When this port's value /// changes, it will set the value of all connected ports. /// </summary> /// <param name="other">The other port to connect to</param> public void ConnectTo (Port other) { if (other == null) return; if (this == other) return; if (connectedPorts.Contains (other)) return; connectedPorts.Add (other); other.connectedPorts.Add (this); // Propagate other.Value = this.Value; }
public void ConnectTo (Port port) { connectedPorts.Add (port); }
public Connection (Port fromPort, Port toPort) { From = fromPort; To = toPort; }
public void ConnectTo(Port port) { connectedPorts.Add(port); }