update language'
[des2015.git] / dsl / runtime / src / nl / ru / des / ShutdownBehaviour.java
index 9b34b95..4e9e5aa 100644 (file)
@@ -1,19 +1,16 @@
 package nl.ru.des;
 
 import lejos.hardware.motor.EV3LargeRegulatedMotor;
+import nl.ru.des.sensors.SensorCollector;
 
 public class ShutdownBehaviour extends BasicBehaviour{
-
-       private String missionName;
-       
        public ShutdownBehaviour(SensorCollector sensors, EV3LargeRegulatedMotor leftMotor,
-                       EV3LargeRegulatedMotor rightMotor, ColorMemory colors, String missionName) {
-               super(sensors, leftMotor, rightMotor, colors);
-               this.missionName = missionName;
+                       EV3LargeRegulatedMotor rightMotor) {
+               super(sensors, leftMotor, rightMotor);
        }
        
        @Override public void action(){
-               //Here it should stop the current arbitrator, not sure how yet...
-               MarsRover.FinishMission(missionName);
+               LCDPrinter.print("Terminate mission");
+               Marster.arb.stop();
        }
 }