c8a1b5b9ad0080fbf23791a84d48b8ca369d5f81
[des2015.git] / mart / ev3 / ex1 / nl / ru / des / Main.java
1 package nl.ru.des;
2
3 import lejos.hardware.ev3.LocalEV3;
4 import lejos.robotics.subsumption.Arbitrator;
5 import lejos.robotics.subsumption.Behavior;
6
7 public class Main {
8
9 public static void main(String[] args) {
10 LocalEV3.get().getKey("Escape").addKeyListener(new ButtonListener());
11 Behavior[] behaviorList = new Behavior[]{
12 new WandererBehaviour(),
13 //new StayInFieldBehaviour(),
14 };
15 Arbitrator arb = new Arbitrator(behaviorList);
16 arb.start();
17 }
18 }