X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=dsl%2Fruntime%2Fsrc%2Fnl%2Fru%2Fdes%2FShutdownBehaviour.java;h=4e9e5aad0bcd02d7fea8e5e99a084829a3720084;hb=d66c5c319eb15f45086d6d0f6bda34b7ebedc42e;hp=9b34b952438c997e7303c22e580e9dbc9e6c26d1;hpb=d9e24efc7491c75496d20fbfd1e48954605ea301;p=des2015.git diff --git a/dsl/runtime/src/nl/ru/des/ShutdownBehaviour.java b/dsl/runtime/src/nl/ru/des/ShutdownBehaviour.java index 9b34b95..4e9e5aa 100644 --- a/dsl/runtime/src/nl/ru/des/ShutdownBehaviour.java +++ b/dsl/runtime/src/nl/ru/des/ShutdownBehaviour.java @@ -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(); } }