View Javadoc
1   package org.opentrafficsim.road.network.factory.vissim;
2   
3   import java.io.Serializable;
4   
5   import org.djunits.value.vdouble.scalar.Length;
6   import org.opentrafficsim.core.network.NetworkException;
7   import org.xml.sax.SAXException;
8   
9   /**
10   * <p>
11   * Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12   * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
13   * <p>
14   * $LastChangedDate: 2019-01-06 01:39:32 +0100 (Sun, 06 Jan 2019) $, @version $Revision: 4833 $, by $Author: averbraeck $,
15   * initial version Jul 24, 2015 <br>
16   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
17   */
18  class StraightTag implements Serializable
19  {
20      /** */
21      private static final long serialVersionUID = 20150724L;
22  
23      /** Length. */
24      @SuppressWarnings("checkstyle:visibilitymodifier")
25      Length length = null;
26  
27      /**
28       * Parse the LINK.STRAIGHT tag.
29       * @param coords String; of the vertices to parse
30       * @param parser VissimNetworkLaneParser; the parser with the lists of information
31       * @param linkTag LinkTag; the parent link tag
32       * @throws SAXException when parsing of the tag fails
33       * @throws NetworkException when parsing of the tag fails
34       */
35      @SuppressWarnings("checkstyle:needbraces")
36      static void parseStraight(final String coords, final VissimNetworkLaneParser parser, final LinkTag linkTag)
37              throws SAXException, NetworkException
38      {
39          linkTag.straightTag = new StraightTag();
40  
41      }
42  
43      /**
44       *
45       */
46      public StraightTag()
47      {
48          // TODO Auto-generated constructor stub
49      }
50  
51      /**
52       * @param straightTag StraightTag; the parser with the lists of information
53       */
54      public StraightTag(StraightTag straightTag)
55      {
56          if (straightTag != null)
57          {
58              this.length = straightTag.length;
59          }
60      }
61  
62      /** {@inheritDoc} */
63      @Override
64      public final String toString()
65      {
66          return "StraightTag [length=" + this.length + "]";
67      }
68  }