/* *********************************************************************** *
 * project: org.matsim.*                                                   *
 *                                                                         *
 * *********************************************************************** *
 *                                                                         *
 * copyright       : (C) 2009 by the members listed in the COPYING,        *
 *                   LICENSE and WARRANTY file.                            *
 * email           : info at matsim dot org                                *
 *                                                                         *
 * *********************************************************************** *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *   See also COPYING, LICENSE and WARRANTY file                           *
 *                                                                         *
 * *********************************************************************** */

package org.matsim.contrib.bicycle;

import org.matsim.api.core.v01.network.Link;

/**
 * Enumeration of frequently used labels related to bicycles.
 *
 * @author dziemke
 */
public final class BicycleUtils {
	// I think that this should rather be used through a BicycleUtils class.  kai, may'19

	public static final String GRADIENT = "gradient";
	public static final String AVERAGE_ELEVATION = "averageElevation";
	public static final String SURFACE = "surface";
	public static final String SMOOTHNESS = "smoothness";
	public static final String CYCLEWAY = "cycleway";
	public static final String WAY_TYPE = "type";
	public static final String BICYCLE_INFRASTRUCTURE_SPEED_FACTOR = "bicycleInfrastructureSpeedFactor";

	private BicycleUtils() {
		// Don't allow to create instances of this class
	}
	public static String getCyclewaytype( Link link ){
		return (String) link.getAttributes().getAttribute( CYCLEWAY );
	}

	public static String getSurface( Link link ){
		return (String) link.getAttributes().getAttribute( SURFACE );
	}

	public static String getUserDefinedNetworkAttribute( Link link, String nameOfUserDefinedNetworkAttribute ) {
		return (String) link.getAttributes().getAttribute( nameOfUserDefinedNetworkAttribute );
	}
}
