Package ch.bfh.ti.kybernetik.engine.controller.observerCommands.model

Examples of ch.bfh.ti.kybernetik.engine.controller.observerCommands.model.RoboterMoveListModelObserverCommand


            }
            RoboterMove rm = roboterController.calculateNewRoboterPosition(leftSensorIntensity, rightSensorIntensity);

            calculateOutOfWindowAreaPosition(roboterController, rm);

            notifyObservers(new RoboterMoveListModelObserverCommand(roboter,
                RoboterMoveModelObserverCommandState.ROBOTER_MOVE_ADDED, roboterController.getRoboterMoveHistory()));
            notifyObservers(new RoboterModelObserverCommand(roboter,
                RoboterModelObserverCommand.RoboterModelCommandState.ROBOTER_MOVED));
          }
View Full Code Here


      } else if (lsmoc.getState() == LightSensorCommandState.SENSOR_INTENSITY_REMAINS) {
        RoboterComponent rc = findOrAddRoboterComponent(lsmoc.getModel());
        rc.unHightLightRoboterElement(lsmoc.getPayLoad());
      }
    } else if (observerCommand instanceof RoboterMoveListModelObserverCommand) {
      RoboterMoveListModelObserverCommand rmlmoc = (RoboterMoveListModelObserverCommand) observerCommand;
      if (rmlmoc.getState() == RoboterMoveModelObserverCommandState.ROBOTER_MOVE_ADDED) {
        RoboterMoveListComponent rtc = findOrAddRoboterTraceComponent(rmlmoc.getModel());
        rtc.setMoves(rmlmoc.getPayLoad());
      }
    } else if (observerCommand instanceof LightBulbModelObserverCommand) {
      LightBulbModelObserverCommand lbmoc = (LightBulbModelObserverCommand) observerCommand;
      if (lbmoc.getState() == LightBulbModelCommandState.LIGHTBULB_ADDED) {
        this.lightBulbComponents.add(new LightBulbComponent(lbmoc.getModel()));
View Full Code Here

TOP

Related Classes of ch.bfh.ti.kybernetik.engine.controller.observerCommands.model.RoboterMoveListModelObserverCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.