1 package cz.cuni.amis.pogamut.usar2004.agent.module.datatypes;
2
3
4
5
6
7
8 public enum DriveDirection
9 {
10 FORWARD,
11 BACKWARD,
12 LEFT,
13 RIGHT,
14 UNKNOWN;
15
16 public static DriveDirection getType(String type)
17 {
18 if(type.equalsIgnoreCase("Front"))
19 {
20 return FORWARD;
21 }
22 if(type.equalsIgnoreCase("Backwards"))
23 {
24 return BACKWARD;
25 }
26 if(type.equalsIgnoreCase("Left"))
27 {
28 return LEFT;
29 }
30 if(type.equalsIgnoreCase("Right"))
31 {
32 return RIGHT;
33 }
34 return UNKNOWN;
35 }
36 }