Esempio n. 1
0
  public void rescan() {
    boolean reset = false;
    boolean origInterruptableValue = false;

    if (eventManager.getCurrentTopEventPriority() == eventManager.getScannedRobotEventPriority()) {
      reset = true;
      origInterruptableValue =
          eventManager.isInterruptible(eventManager.getScannedRobotEventPriority());
      eventManager.setInterruptible(eventManager.getScannedRobotEventPriority(), true);
    }

    commands.setScan(true);
    executeImpl();

    if (reset) {
      eventManager.setInterruptible(
          eventManager.getScannedRobotEventPriority(), origInterruptableValue);
    }
  }
Esempio n. 2
0
 // blocking actions
 public void execute() {
   executeImpl();
 }