1 package cz.cuni.amis.pogamut.usar2004.agent.module.datatypes; 2 3 /** 4 * Simple enum for direction of obstacles representation. 5 * 6 * @author vejmanm 7 */ 8 public enum ClosestObstacle 9 { 10 LEFT, 11 RIGHT, 12 UNKNOWN; 13 14 public static ClosestObstacle getType(String type) 15 { 16 if(type.equalsIgnoreCase("Left")) 17 { 18 return LEFT; 19 } 20 if(type.equalsIgnoreCase("Right")) 21 { 22 return RIGHT; 23 } 24 return UNKNOWN; 25 } 26 }