示例#1
0
 public Port(Node parent, Direction dir, PortDataType dataType, string name)
 {
     FlowDirection = dir;
     DataType      = dataType;
     Name          = name;
     Parent        = parent;
 }
示例#2
0
 public PortTypeMismatchException(PortDataType expected, PortDataType given)
 {
     Expected = expected;
     Given    = given;
 }
示例#3
0
 public InputPort(Node parent, string name, PortDataType type) : base(parent, Direction.Input, type, name)
 {
     parent.AddPort(this);
 }
示例#4
0
 public OutputPort(Node parent, string name, PortDataType type) : base(parent, Direction.Output, type, name)
 {
     _connections = new List <InputPort>();
     parent.AddPort(this);
 }