public final class Convert extends Object
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
static CrossSectionLink<?,?> |
convertLink(Link link)
This method converts an OSM link to an OTS link.
|
static NodeGeotools.STR |
convertNode(Node node)
This method converts an OSM node to an OTS node.
|
static Network |
findSinksandSources(Network net) |
static List<Lane> |
makeLanes(Link osmlink,
OTSDEVSSimulatorInterface simulator)
This method creates lanes out of an OSM link LaneTypes are not jet extensive and can be further increased through
Tags provided by OSM.
|
static LaneType<String> |
makeLaneType(GTUType<String> gtuType)
This method creates a LaneType which supports the specified GTUType.
|
static LaneType<String> |
makeLaneType(List<GTUType<String>> gtuTypes)
This method creates a LaneType which supports all GTUTypes that have been specified in the GTUType List "GTUs".
|
static com.vividsolutions.jts.geom.Coordinate |
transform(com.vividsolutions.jts.geom.Coordinate c) |
public static com.vividsolutions.jts.geom.Coordinate transform(com.vividsolutions.jts.geom.Coordinate c)
throws org.opengis.referencing.FactoryException,
org.opengis.referencing.operation.TransformException
c - WGS84 Coordinateorg.opengis.referencing.FactoryExceptionorg.opengis.referencing.operation.TransformExceptionpublic static CrossSectionLink<?,?> convertLink(Link link)
link - OSM Link to be convertedpublic static NodeGeotools.STR convertNode(Node node)
node - OSM Node to be convertedpublic static List<Lane> makeLanes(Link osmlink, OTSDEVSSimulatorInterface simulator) throws NetworkException, RemoteException, NamingException
osmlink - Link; the OSM link to make lanes forsimulator - NetworkExceptionNamingExceptionRemoteExceptionpublic static LaneType<String> makeLaneType(List<GTUType<String>> gtuTypes)
gtuTypes - List<GTUType<String>>; list of GTUTypespublic static LaneType<String> makeLaneType(GTUType<String> gtuType)
gtuType - GTUType; the type of GTU that can travel on the new LaneTypeCopyright © 2014–2015 Delft University of Technology. All rights reserved.