Class GeneratorSinkParser
- java.lang.Object
-
- org.opentrafficsim.road.network.factory.xml.parser.GeneratorSinkParser
-
public final class GeneratorSinkParser extends Object
GeneratorSinkParser.java.
Copyright (c) 2003-2018 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.- Author:
- Alexander Verbraeck
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<LaneBasedGTUGenerator>
parseGenerators(OTSRoadNetwork otsNetwork, NETWORKDEMAND demand, Map<String,GTUTEMPLATE> gtuTemplates, Map<String,List<Distribution.FrequencyAndObject<Route>>> routeMixMap, Map<String,List<Distribution.FrequencyAndObject<Route>>> shortestRouteMixMap, Map<String,StreamInformation> streamMap)
Parse the Generators.static void
parseSinks(OTSRoadNetwork otsNetwork, NETWORKDEMAND demand, OTSSimulatorInterface simulator)
Parse the Sinks.
-
-
-
Method Detail
-
parseGenerators
public static List<LaneBasedGTUGenerator> parseGenerators(OTSRoadNetwork otsNetwork, NETWORKDEMAND demand, Map<String,GTUTEMPLATE> gtuTemplates, Map<String,List<Distribution.FrequencyAndObject<Route>>> routeMixMap, Map<String,List<Distribution.FrequencyAndObject<Route>>> shortestRouteMixMap, Map<String,StreamInformation> streamMap) throws XmlParserException
Parse the Generators.- Parameters:
otsNetwork
- OTSRoadNetwork; the network to insert the parsed objects indemand
- NETWORK; the NETWORK taggtuTemplates
- GGTUTEMPLATE tagsrouteMixMap
- map with route mix entriesshortestRouteMixMap
- map with shortest route mix entriesstreamMap
- map with stream information- Returns:
- list of created GTU generators
- Throws:
XmlParserException
- when the objects cannot be inserted into the network due to inconsistencies
-
parseSinks
public static void parseSinks(OTSRoadNetwork otsNetwork, NETWORKDEMAND demand, OTSSimulatorInterface simulator) throws NetworkException
Parse the Sinks.- Parameters:
otsNetwork
- OTSRoadNetwork; the network to insert the parsed objects indemand
- NETWORK; the NETWORK tagsimulator
- OTSSimulatorInterface; the simulator- Throws:
NetworkException
- when the objects cannot be inserted into the network due to inconsistencies
-
-