package org.opentrafficsim.kpi.sampling; /** *

* Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License. *

* @version $Revision$, $LastChangedDate$, by $Author$, initial version 12 okt. 2016
* @author Alexander Verbraeck * @author Peter Knoppers * @author Wouter Schakel */ public enum KpiGtuDirectionality { /** * Driving direction matches the direction of the graph, increasing fractional position when driving in this direction. */ DIR_PLUS, /** * Driving direction opposite to the direction of the graph, decreasing fractional position when driving in this direction. */ DIR_MINUS; /** * @return whether the gtu drives in the design direction on the link */ public boolean isPlus() { return this.equals(DIR_PLUS); } /** * @return whether the gtu drives against the design direction on the link */ public boolean isMinus() { return this.equals(DIR_MINUS); } }