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";

	/**
	 * Stop sign
	 */
	public final static String STOP_SIGN = "stop_sign";

	/**
	 * 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(STOP_SIGN))
			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, STOP_SIGN,
				TRAFFIC_LIGHT };
		return categories;
	}
}

@@ -563,91 +563,8 @@
 %0D%0A%0D%0A
-%09/**%0D%0A%09 * Stop sign%0D%0A%09 */%0D%0A%09public final static String STOP_SIGN = %22stop_sign%22;%0D%0A%0D%0A
 %09/**
@@ -1123,60 +1123,8 @@
 e;%0D%0A
-%09%09if (category.equals(STOP_SIGN))%0D%0A%09%09%09return true;%0D%0A
 %09%09if
@@ -1392,19 +1392,8 @@
 DGE,
- STOP_SIGN,
 %0D%0A%09%09

Remove stop sign from street furniture categories