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 Details

  • Method Details

    • 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 - network
      matrix - origin-destination matrix
      simulator - simulator
    • getQuery

      public static Query getQuery​(OTSRoadNetwork network, Sampler sampling)
      Parameters:
      network - network
      sampling - sampling
      Returns:
      query covering the entire N201