1
2
3
4
5
6
7
8
9
10
11 package nl.tudelft.simulation.traffic.track.util;
12
13 import nl.tudelft.simulation.traffic.track.TrackInterface;
14
15 /***
16 * <br>
17 * (c) copyright 2003-2004 <a href="http://www.simulation.tudelft.nl">Delft
18 * University of Technology </a>, the Netherlands. <br>
19 * See for project information <a href="http://www.simulation.tudelft.nl">
20 * www.simulation.tudelft.nl </a> <br>
21 * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
22 * License (GPL) </a>, no warranty <br>
23 *
24 * @version Oct 4, 2004 <br>
25 * @author <a
26 * href="http://www.tbm.tudelft.nl/webstaf/alexandv/index.htm">Alexander
27 * Verbraeck </a>
28 */
29 public class TrackProgression
30 {
31 /*** the track */
32 private TrackInterface track;
33
34 /*** the progression */
35 private double progression;
36
37 /***
38 * @param track
39 * @param progression
40 *
41 */
42 public TrackProgression(final TrackInterface track, final double progression)
43 {
44 super();
45 this.track = track;
46 this.progression = progression;
47 }
48
49 /***
50 * @return Returns the progression.
51 */
52 public double getProgression()
53 {
54 return this.progression;
55 }
56
57 /***
58 * @return Returns the track.
59 */
60 public TrackInterface getTrack()
61 {
62 return this.track;
63 }
64
65 /***
66 * @see java.lang.Object#toString()
67 */
68 public String toString()
69 {
70 return this.track + "[" + this.progression + "]";
71 }
72 }