public ControlSystem(IConveyor conveyor, IRobot robot, IVacuumPort vacuumPort) { _conveyor = conveyor; _robot = robot; _vacuumPort = vacuumPort; CleanupStart += _vacuumPort.OnCleanUp; CleanupComplete += _vacuumPort.OnCleanUpComplete; }
public void GivenIHaveAConveyorSetupForFootPerCycle(int p0) { _conveyor = new Conveyor(p0); }
/// <param name="first"> First conveyor </param> /// <param name="second"> Second conveyor </param> /// <exception cref="ArgumentNullException"> Thrown if <paramref name="first" /> or <paramref name="second" /> is NULL </exception> public ConveyorChain(IConveyor <TData, TIntermediate> first, IConveyor <TIntermediate, TResult> second) { _first = first ?? throw new ArgumentNullException(nameof(first)); _second = second ?? throw new ArgumentNullException(nameof(second)); _maxAttempts = Math.Max(_first.MaxAttempts, _second.MaxAttempts); }
private void Awake() { receivingConveyor = gameObject.GetComponentWithInterface <IConveyor>(); currentOrder.Initialize(); }
/// <param name="conveyor"> Conveyor instance </param> /// <exception cref="ArgumentNullException"> Thrown if <paramref name="conveyor" /> is NULL </exception> public PriorityConveyorEmulator(IConveyor <TData, TResult> conveyor) => _conveyor = conveyor ?? throw new ArgumentNullException(nameof(conveyor));
public TestEntitiesStore(IConveyor conveyor) { _conveyor = conveyor; }
/// <summary> /// Initializes a new instance of the <see cref="ConveyorExecutor{T}"/> class. /// </summary> /// <param name="conveyor">The conveyor.</param> /// <param name="itemPreparer">The conveyor item preparer.</param> /// <exception cref="ArgumentNullException"> /// conveyor /// or /// itemPreparer /// </exception> public ConveyorExecutor(IConveyor <T> conveyor, IConveyorItemPreparer <T> itemPreparer) { _conveyor = conveyor ?? throw new ArgumentNullException(nameof(conveyor)); _itemPreparer = itemPreparer ?? throw new ArgumentNullException(nameof(itemPreparer)); }