Ejemplo n.º 1
0
 public ControlSystem(IConveyor conveyor, IRobot robot, IVacuumPort vacuumPort)
 {
     _conveyor = conveyor;
     _robot = robot;
     _vacuumPort = vacuumPort;
     CleanupStart += _vacuumPort.OnCleanUp;
     CleanupComplete += _vacuumPort.OnCleanUpComplete;
 }
Ejemplo n.º 2
0
 public void GivenIHaveAConveyorSetupForFootPerCycle(int p0)
 {
     _conveyor = new Conveyor(p0);
 }
Ejemplo n.º 3
0
 /// <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();
 }
Ejemplo n.º 5
0
 /// <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));
Ejemplo n.º 6
0
 public TestEntitiesStore(IConveyor conveyor)
 {
     _conveyor = conveyor;
 }
Ejemplo n.º 7
0
 /// <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));
 }