示例#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));
 }
示例#2
0
 public override InPort Expose(int inPortNO)
 {
     if (inPortNO == InPortCount())
     {
         InPort inPort = new InPort($"in{inPortNO}", this);
         InPortList.Add(inPort);
         return(inPort);
     }
     else
     {
         return(base.Expose(inPortNO));
     }
 }
示例#3
0
文件: Pow.cs 项目: JRY-Zheng/ligral
 protected override void SetUpPorts()
 {
     InPortList.Add(new InPort("x", this));
     OutPortList.Add(new OutPort("y", this));
 }
示例#4
0
 protected override void SetUpPorts()
 {
     InPortList.Add(new InPort("input", this));
 }
示例#5
0
文件: Split.cs 项目: JRY-Zheng/ligral
 protected override void SetUpPorts()
 {
     InPortList.Add(new InPort("matrix", this));
     base.SetUpPorts();
 }
示例#6
0
 protected override void SetUpPorts()
 {
     InPortList.Add(new InPort("left", this));
     InPortList.Add(new InPort("right", this));
     OutPortList.Add(new OutPort("result", this));
 }