public final class NetworkParser extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
NetworkParser.CSEData
contains information about the lanes and stripes to calculate the offset.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Direction> |
calculateNodeAngles(OTSRoadNetwork otsNetwork,
NETWORK network)
Calculate the default angles of the Nodes, in case they have not been set.
|
static void |
parseNodes(OTSRoadNetwork otsNetwork,
NETWORK network,
Map<String,Direction> nodeDirections)
Parse the Nodes.
|
public static void parseNodes(OTSRoadNetwork otsNetwork, NETWORK network, Map<String,Direction> nodeDirections) throws NetworkException
otsNetwork - OTSRoadNetwork; the network to insert the parsed objects innetwork - NETWORK; the NETWORK tagnodeDirections - Map<String,Direction>; a map of the node ids and their default directionsNetworkException - when the objects cannot be inserted into the network due to inconsistenciespublic static Map<String,Direction> calculateNodeAngles(OTSRoadNetwork otsNetwork, NETWORK network)
otsNetwork - OTSRoadNetwork; the network to insert the parsed objects innetwork - NETWORK; the NETWORK tagCopyright © 2014–2019 Delft University of Technology. All rights reserved.