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

edu.kit.ifv.mobitopp.data.local.configuration.NoPublicTransport 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.data.local.configuration;

import java.util.Optional;
import java.util.function.Supplier;

import edu.kit.ifv.mobitopp.data.Network;
import edu.kit.ifv.mobitopp.simulation.Hook;
import edu.kit.ifv.mobitopp.simulation.PublicTransport;
import edu.kit.ifv.mobitopp.simulation.PublicTransportData;
import edu.kit.ifv.mobitopp.simulation.SimulationDays;
import edu.kit.ifv.mobitopp.simulation.person.PersonState;
import edu.kit.ifv.mobitopp.simulation.publictransport.TimetableVerifier;

public class NoPublicTransport implements PublicTransport {

	public NoPublicTransport() {
		super();
	}

	/**
	 * SnakeYaml needs a single argument constructor for classes without attributes.
	 * @param dummy  
	 */
	public NoPublicTransport(String dummy) {
		super();
	}

	@Override
	public PersonState initialState(PersonState defaultState) {
		return defaultState;
	}

	@Override
	public Optional cleanCacheHook() {
		return Optional.empty();
	}

	@Override
	public PublicTransportData loadData(Supplier network, SimulationDays simulationDays, TimetableVerifier timetableVerifier) {
		return PublicTransportData.noAssignement;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy