Class 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 Detail

      • N201ODfactory

        public N201ODfactory()
    • 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 - network
        matrix - origin-destination matrix
        simulator - simulator
      • getQuery

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