package org.opentrafficsim.demo.ntm.trafficdemand; /** *
* Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License.
*
* $LastChangedDate$, @version $Revision$, by $Author$,
* initial version 22 Sep 2014
* @author Alexander Verbraeck
* @author Hans van Lint
* @author Peter Knoppers
* @author Guus Tamminga
* @author Yufei Yuan
*/
public class TripInfoTimeDynamic extends TripInfo
{
/** Relative amount of trips within a period over the separate segments. */
private DepartureTimeProfile departureTimeProfile;
/**
* @param numberOfTrips double; amount of....
* @param departureTimeProfile DepartureTimeProfile; provides the division of trips by time segments
*/
public TripInfoTimeDynamic(final double numberOfTrips, final DepartureTimeProfile departureTimeProfile)
{
super(numberOfTrips);
this.departureTimeProfile = departureTimeProfile;
}
/**
* @return departureTimeProfile.
*/
public final DepartureTimeProfile getDepartureTimeProfile()
{
return this.departureTimeProfile;
}
/**
* @param departureTimeProfile DepartureTimeProfile; set departureTimeProfile.
*/
public final void setDepartureTimeProfile(final DepartureTimeProfile departureTimeProfile)
{
this.departureTimeProfile = departureTimeProfile;
}
}