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 15 Sep 2014
* @author Alexander Verbraeck
* @author Hans van Lint
* @author Peter Knoppers
* @author Guus Tamminga
* @author Yufei Yuan
*/
public class TripInfo
{
/** Total number of Trips for this simulation from the trip demand file. */
private double numberOfTrips;
/**
* @param numberOfTrips total number of Trips for this simulation
*/
public TripInfo(final double numberOfTrips)
{
this.numberOfTrips = numberOfTrips;
}
/**
* @param add double; number of Trips to be added
*/
public final void addNumberOfTrips(double add)
{
this.numberOfTrips = this.getNumberOfTrips() + add;
}
/**
* @return numberOfTrips
*/
public final double getNumberOfTrips()
{
return this.numberOfTrips;
}
/**
* @param numberOfTrips double; set numberOfTrips
*/
public final void setNumberOfTrips(final double numberOfTrips)
{
this.numberOfTrips = numberOfTrips;
}
}