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

	/**
	 * 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(STOP_SIGN))
			return true;
		if (category.equals(TRAFFIC_LIGHT))
			return true;
		return false;
	}
}

@@ -376,16 +376,18 @@
 idge%22;%0D%0A
+%0D%0A
 %09/**%0D%0A%09 
@@ -457,24 +457,122 @@
 sswalk%22;%0D%0A%0D%0A
+%09/**%0D%0A%09 * Railway bridge%0D%0A%09 */%0D%0A%09public final static String RAILWAY_BRIDGE = %22railway_bridge%22;%0D%0A%0D%0A
 %09/**%0D%0A%09 * St
@@ -1137,32 +1137,89 @@
 %09%09return true;%0D%0A
+%09%09if (category.equals(RAILWAY_BRIDGE))%0D%0A%09%09%09return true;%0D%0A
 %09%09if (category.e

Add railway bridge to StreetFurnitureCategory