protected override void SetUpPorts() { InPortList.Add(new InPort("condition", this)); InPortList.Add(new InPort("first", this)); InPortList.Add(new InPort("second", this)); OutPortList.Add(new OutPort("result", this)); }
public override void Connect(int outPortNO, InPort inPort) { if (outPortNO == OutPortCount()) { OutPort outPort = new OutPort($"out{outPortNO}", this); OutPortList.Add(outPort); outPort.Bind(inPort); Results.Add(new Signal(outPort)); } else { base.Connect(outPortNO, inPort); } }
protected override void SetUpPorts() { InPortList.Add(new InPort("x", this)); OutPortList.Add(new OutPort("y", this)); }
protected override void SetUpPorts() { base.SetUpPorts(); OutPortList.Add(new OutPort("matrix", this)); }
protected override void SetUpPorts() { OutPortList.Add(new OutPort("value", this)); }
protected override void SetUpPorts() { InPortList.Add(new InPort("left", this)); InPortList.Add(new InPort("right", this)); OutPortList.Add(new OutPort("result", this)); }