public AddConsumerNode(NodeIdentifier nodeId, NodePosition position, int capacity) { NodeId = nodeId ?? throw new System.ArgumentNullException(nameof(nodeId)); Position = position ?? throw new System.ArgumentNullException(nameof(position)); Capacity = capacity; }
public Gateway(NodeIdentifier id, NodePosition position, NodeQueue queue, NodePortSet ports) : base(id, position, queue, ports) { }
public Router(NodeIdentifier id, NodePosition position, NodeQueue queue, NodePortSet ports, RouterState state) : base(id, position, queue, ports) { State = state ?? throw new ArgumentNullException(nameof(state)); }
public Consumer(NodeIdentifier id, NodePosition position, NodeQueue queue, NodePortSet ports) : base(id, position, queue, ports) { }