1 package org.opentrafficsim.road.gtu.lane.perception.categories.neighbors;
2
3 import org.djunits.value.vdouble.scalar.Acceleration;
4 import org.djunits.value.vdouble.scalar.Length;
5 import org.djunits.value.vdouble.scalar.Speed;
6
7
8
9
10
11
12
13
14
15
16
17
18 public class NeighborTriplet
19 {
20
21
22 private final Length headway;
23
24
25 private final Speed speed;
26
27
28 private final Acceleration acceleration;
29
30
31
32
33
34
35 public NeighborTriplet(final Length headway, final Speed speed, final Acceleration acceleration)
36 {
37 this.headway = headway;
38 this.speed = speed;
39 this.acceleration = acceleration;
40 }
41
42
43
44
45 public Length getHeadway()
46 {
47 return this.headway;
48 }
49
50
51
52
53 public Speed getSpeed()
54 {
55 return this.speed;
56 }
57
58
59
60
61 public Acceleration getAcceleration()
62 {
63 return this.acceleration;
64 }
65
66
67 @Override
68 public final String toString()
69 {
70 return "NeighborTriplet [headway=" + this.headway + ", speed=" + this.speed + ", acceleration=" + this.acceleration
71 + "]";
72 }
73 }