9b34b952438c997e7303c22e580e9dbc9e6c26d1
[des2015.git] / dsl / runtime / src / nl / ru / des / ShutdownBehaviour.java
1 package nl.ru.des;
2
3 import lejos.hardware.motor.EV3LargeRegulatedMotor;
4
5 public class ShutdownBehaviour extends BasicBehaviour{
6
7 private String missionName;
8
9 public ShutdownBehaviour(SensorCollector sensors, EV3LargeRegulatedMotor leftMotor,
10 EV3LargeRegulatedMotor rightMotor, ColorMemory colors, String missionName) {
11 super(sensors, leftMotor, rightMotor, colors);
12 this.missionName = missionName;
13 }
14
15 @Override public void action(){
16 //Here it should stop the current arbitrator, not sure how yet...
17 MarsRover.FinishMission(missionName);
18 }
19 }