final class Links extends Object
 Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
 LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
 initial version Jul 25, 2015 
| Modifier and Type | Method and Description | 
|---|---|
(package private) static void | 
applyRoadTypeToLink(LinkTag linkTag,
                   XmlNetworkLaneParser parser,
                   org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)  | 
(package private) static void | 
buildLink(LinkTag linkTag,
         XmlNetworkLaneParser parser,
         org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
Find the nodes one by one that have one coordinate defined, and one not defined, and try to build the network from there. 
 | 
(package private) static void | 
calculateNodeCoordinates(LinkTag linkTag,
                        XmlNetworkLaneParser parser)
One of the nodes probably has a coordinate and the other not. 
 | 
(package private) static void | 
calculateNodeCoordinates(XmlNetworkLaneParser parser)
Find the nodes one by one that have one coordinate defined, and one not defined, and try to build the network from there. 
 | 
static void calculateNodeCoordinates(XmlNetworkLaneParser parser) throws org.opentrafficsim.core.network.NetworkException, NamingException
parser - the parser with the lists of informationorg.opentrafficsim.core.network.NetworkException - when both nodes are null.NamingException - when node animation cannot link to the animation context.static void calculateNodeCoordinates(LinkTag linkTag, XmlNetworkLaneParser parser) throws org.opentrafficsim.core.network.NetworkException, NamingException
linkTag - the parsed information from the XML file.parser - the parser with the lists of informationorg.opentrafficsim.core.network.NetworkException - when both nodes are null.NamingException - when node animation cannot link to the animation context.static void buildLink(LinkTag linkTag, XmlNetworkLaneParser parser, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.geometry.OTSGeometryException, NamingException, org.opentrafficsim.core.network.NetworkException
linkTag - the link to processparser - the parser with the lists of informationsimulator - to be able to make the animationorg.opentrafficsim.core.geometry.OTSGeometryException - when both nodes are null.NamingException - when node animation cannot link to the animation context.org.opentrafficsim.core.network.NetworkException - when tag type not filledstatic void applyRoadTypeToLink(LinkTag linkTag, XmlNetworkLaneParser parser, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.network.NetworkException, NamingException, SAXException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.geometry.OTSGeometryException, nl.tudelft.simulation.dsol.SimRuntimeException
linkTag - the link to processparser - the parser with the lists of informationsimulator - to be able to make the animationorg.opentrafficsim.core.network.NetworkException - when the stripe cannot be instantiatedNamingException - when the /animation/2D tree cannot be found in the contextSAXException - when the stripe type cannot be parsed correctlyorg.opentrafficsim.core.gtu.GTUException - when lane block cannot be createdorg.opentrafficsim.core.geometry.OTSGeometryException - when construction of the offset-line or contour failsnl.tudelft.simulation.dsol.SimRuntimeException - when construction of the generator failsCopyright © 2014–2016 Delft University of Technology. All rights reserved.