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