All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.kit.ifv.mobitopp.visum.IdToOidMapper Maven / Gradle / Ivy

Go to download

mobiTopp (http://mobitopp.ifv.kit.edu/) is an agent-based travel demand model developed at the Institute for transport studies at the Karlsruhe Institute of Technology (http://www.ifv.kit.edu/english/index.php). Publications about mobiTopp can be found on the project site (http://mobitopp.ifv.kit.edu/28.php).

The newest version!
package edu.kit.ifv.mobitopp.visum;

import java.util.Map;

import edu.kit.ifv.mobitopp.data.ZoneId;

public interface IdToOidMapper {

  /**
   * Maps a given zone id of visum to the oid used in mobiTopp
   * 
   * @param id
   *          of the visum zone
   * @return oid used in mobiTopp
   */
  Integer map(String id);
  
  /**
   * Maps a given zone id of visum to the {@link ZoneId} used in mobiTopp
   * 
   * @param id
   *          of the visum zone
   * @return {@link ZoneId} used in mobiTopp
   */
  ZoneId mapToZoneId(String id);

	static IdToOidMapper createFrom(Map map) {
		return new MapBasedMapper(map);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy