Class N201ODfactory
- java.lang.Object
-
- org.opentrafficsim.demo.network.xml.N201ODfactory
-
public class N201ODfactory extends java.lang.Object
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 6 okt. 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description N201ODfactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ODMatrix
get(Network network)
Creates origin-destination matrix.static Query
getQuery(OTSRoadNetwork network, Sampler sampling, FilterDataSet metaDataSet)
static void
makeGeneratorsFromOD(OTSRoadNetwork network, ODMatrix matrix, OTSSimulatorInterface simulator)
Makes generators at origin nodes of the OD.
-
-
-
Method Detail
-
get
public static ODMatrix get(Network network)
Creates origin-destination matrix.- Parameters:
network
- network- Returns:
- origin-destination matrix
-
makeGeneratorsFromOD
public static void makeGeneratorsFromOD(OTSRoadNetwork network, ODMatrix matrix, OTSSimulatorInterface simulator)
Makes generators at origin nodes of the OD.- Parameters:
network
- networkmatrix
- origin-destination matrixsimulator
- simulator
-
getQuery
public static Query getQuery(OTSRoadNetwork network, Sampler sampling, FilterDataSet metaDataSet)
- Parameters:
network
- networksampling
- samplingmetaDataSet
- meta data set- Returns:
- query covering the entire N201
-
-