public class GeneratorSinkParser extends Object
Modifier and Type | Method and Description |
---|---|
static List<LaneBasedGTUGenerator> |
parseGenerators(OTSRoadNetwork otsNetwork,
NETWORKDEMAND demand,
Map<String,GTUTEMPLATE> gtuTemplates,
OTSSimulatorInterface simulator,
Map<String,StreamInformation> streamMap)
Parse the Generators.
|
static void |
parseSinks(OTSRoadNetwork otsNetwork,
NETWORKDEMAND demand,
OTSSimulatorInterface simulator)
Parse the Sinks.
|
public static List<LaneBasedGTUGenerator> parseGenerators(OTSRoadNetwork otsNetwork, NETWORKDEMAND demand, Map<String,GTUTEMPLATE> gtuTemplates, OTSSimulatorInterface simulator, Map<String,StreamInformation> streamMap) throws XmlParserException
otsNetwork
- OTSRoadNetwork; the network to insert the parsed objects indemand
- NETWORK; the NETWORK taggtuTemplates
- GGTUTEMPLATE tagssimulator
- OTSSimulatorInterface; the simulatorstreamMap
- map with stream informationXmlParserException
- when the objects cannot be inserted into the network due to inconsistenciespublic static void parseSinks(OTSRoadNetwork otsNetwork, NETWORKDEMAND demand, OTSSimulatorInterface simulator) throws NetworkException
otsNetwork
- OTSRoadNetwork; the network to insert the parsed objects indemand
- NETWORK; the NETWORK tagsimulator
- OTSSimulatorInterface; the simulatorNetworkException
- when the objects cannot be inserted into the network due to inconsistenciesCopyright © 2014–2019 Delft University of Technology. All rights reserved.