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

edu.kit.ifv.mobitopp.data.local.configuration.TravelTimeMatrixId 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.function.Function;
import java.util.stream.Stream;

import edu.kit.ifv.mobitopp.data.DayType;
import edu.kit.ifv.mobitopp.simulation.StandardMode;
import lombok.EqualsAndHashCode;
import lombok.RequiredArgsConstructor;
import lombok.ToString;

@RequiredArgsConstructor
@EqualsAndHashCode
@ToString
public class TravelTimeMatrixId {

	private final StandardMode mode;
	private final DayType dayType;
	private final TimeSpan timeSpan;

	public StandardMode matrixType() {
		return mode;
	}

	public DayType dayType() {
		return dayType;
	}

	public TimeSpan timeSpan() {
		return timeSpan;
	}

	public Stream split() {
		Function factory = timeSpan -> new TravelTimeMatrixId(mode,
				dayType, timeSpan);
		return timeSpan.hours().map(factory);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy