package de.mrunde.bachelorthesis.basics;

/**
 * Categories of street furniture (e.g. stop sign)<br/>
 * Roundabouts are already covered by the MapQuest Directions service so there
 * is no need for a special category.
 * 
 * @author Marius Runde
 */
public abstract class StreetFurnitureCategory {

	/**
	 * Bridge
	 */
	public final static String BRIDGE = "bridge";

	/**
	 * Crosswalk
	 */
	public final static String CROSSWALK = "crosswalk";

	/**
	 * Railway bridge
	 */
	public final static String RAILWAY_BRIDGE = "railway_bridge";

	/**
	 * Traffic light
	 */
	public final static String TRAFFIC_LIGHT = "traffic_light";

	/**
	 * Check if a category is a valid street furniture category
	 * 
	 * @param category
	 *            Category to be controlled
	 * @return TRUE: <code>category</code> is valid<br/>
	 *         FALSE: <code>category</code> is not valid
	 */
	public static boolean isCategory(String category) {
		if (category.equals(BRIDGE))
			return true;
		if (category.equals(CROSSWALK))
			return true;
		if (category.equals(RAILWAY_BRIDGE))
			return true;
		if (category.equals(TRAFFIC_LIGHT))
			return true;
		return false;
	}

	/**
	 * Get all street furniture categories
	 * 
	 * @return All categories
	 */
	public static String[] getCategories() {
		String[] categories = { BRIDGE, CROSSWALK, RAILWAY_BRIDGE,
				TRAFFIC_LIGHT };
		return categories;
	}
}

@@ -319,90 +319,18 @@
  * B
-ridge%0D%0A%09 */%0D%0A%09public final static String BRIDGE = %22bridge%22;%0D%0A%0D%0A%09/**%0D%0A%09 * Crosswalk
+us station
 %0D%0A%09 
@@ -365,30 +365,34 @@
 ing 
-CROSSWALK = %22crosswalk
+BUS_STATION = %22bus_station
 %22;%0D%0A
@@ -920,65 +920,18 @@
 ls(B
-RIDGE))%0D%0A%09%09%09return true;%0D%0A%09%09if (category.equals(CROSSWALK
+US_STATION
 ))%0D%0A
@@ -1244,24 +1244,18 @@
  %7B B
-RIDGE, CROSSWALK
+US_STATION
 , RA
@@ -1271,14 +1271,9 @@
 DGE,
-%0D%0A%09%09%09%09
+ 
 TRAF

Update street furniture categories