Class N201ODfactory
java.lang.Object
org.opentrafficsim.demo.network.xml.N201ODfactory
public class N201ODfactory
extends java.lang.Object
 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.
 
- 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
Modifier and Type Method Description static ODMatrixget(Network network)Creates origin-destination matrixstatic QuerygetQuery(OTSRoadNetwork network, Sampler sampling)static voidmakeGeneratorsFromOD(OTSRoadNetwork network, ODMatrix matrix, OTSSimulatorInterface simulator)Makes generators at origin nodes of the OD. 
- 
Constructor Details
- 
N201ODfactory
public N201ODfactory() 
 - 
 - 
Method Details
- 
get
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
- Parameters:
 network- networksampling- sampling- Returns:
 - query covering the entire N201
 
 
 -