public class CrossSection extends Object implements Serializable
 Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
| Constructor and Description | 
|---|
| CrossSection(LinkDataInterface link,
            KpiGtuDirectionality direction,
            double fraction)Constructor with link and direction. | 
| CrossSection(Set<KpiDirectedLanePosition> directedLanePositions)Constructor with set of directed lane positions. | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<KpiDirectedLanePosition> | getDirectedLanePositions() | 
| Iterator<KpiDirectedLanePosition> | getIterator() | 
| int | size() | 
| String | toString() | 
public CrossSection(Set<KpiDirectedLanePosition> directedLanePositions)
directedLanePositions - Set<KpiDirectedLanePosition>; set of lane locationspublic CrossSection(LinkDataInterface link, KpiGtuDirectionality direction, double fraction) throws SamplingException
link - LinkDataInterface; linkdirection - KpiGtuDirectionality; directionfraction - double; fraction on linkSamplingException - if an input is nullpublic final int size()
public final Set<KpiDirectedLanePosition> getDirectedLanePositions()
public final Iterator<KpiDirectedLanePosition> getIterator()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.