}
} else if (observerCommand instanceof RoboterModelObserverCommand) {
RoboterModelObserverCommand rmoc = (RoboterModelObserverCommand) observerCommand;
if (rmoc.getState() == RoboterModelCommandState.ROBOTER_ADDED) {
RoboterComponent newRoboterComponent = new RoboterComponent(rmoc.getModel(),
simulator.getRoboterConstructionForRoboter(rmoc.getModel()));
this.roboterComponents.add(newRoboterComponent);
} else if (rmoc.getState() == RoboterModelCommandState.ROBOTER_REMOVED) {
RoboterComponent rc = findOrAddRoboterComponent(rmoc.getModel());
this.roboterComponents.remove(rc);
}
} else if (observerCommand instanceof LightSensorModelObserverCommand) {
LightSensorModelObserverCommand lsmoc = (LightSensorModelObserverCommand) observerCommand;
if (lsmoc.getState() == LightSensorCommandState.SENSOR_INTENSITY_CHANGED) {
RoboterComponent rc = findOrAddRoboterComponent(lsmoc.getModel());
rc.hightLightRoboterElement(lsmoc.getPayLoad());
} 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());