Exemplo n.º 1
0
  @Override
  public void terminatingEvent() {
    int nextPosition;

    if (rcPallet.position > 0) {
      nextPosition = rcPallet.position - 1;

      rcPallet.conveyor.list[rcPallet.position] = null;
      rcPallet.position = nextPosition;
      rcPallet.conveyor.list[nextPosition] = rcPallet;
    } else {
      if (rcPallet.conveyor == model.rqConveyor[Const.OP60CID]) model.output.numTVAssembled++;

      nextPosition = rcPallet.conveyor.nextConveyor.capacity - 1;

      rcPallet.conveyor.list[rcPallet.position] = null;
      rcPallet.position = nextPosition;
      rcPallet.conveyor = rcPallet.conveyor.nextConveyor;
      rcPallet.conveyor.list[nextPosition] = rcPallet;

      if (rcPallet.conveyor == model.rqConveyor[Const.NONECID]) rcPallet.serviced = true;
      else rcPallet.serviced = false;
    }

    rcPallet.moving = false;
  }
Exemplo n.º 2
0
 @Override
 public void startingEvent() {
   rcPallet = model.up.movablePallet(model);
   rcPallet.moving = true;
 }