Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
 protected override void SetUpPorts()
 {
     InPortList.Add(new InPort("x", this));
     OutPortList.Add(new OutPort("y", this));
 }
Esempio n. 4
0
 protected override void SetUpPorts()
 {
     base.SetUpPorts();
     OutPortList.Add(new OutPort("matrix", this));
 }
Esempio n. 5
0
 protected override void SetUpPorts()
 {
     OutPortList.Add(new OutPort("value", this));
 }
Esempio n. 6
0
 protected override void SetUpPorts()
 {
     InPortList.Add(new InPort("left", this));
     InPortList.Add(new InPort("right", this));
     OutPortList.Add(new OutPort("result", this));
 }