1 package org.opentrafficsim.core.gtu;
2
3 import java.io.Serializable;
4
5 import org.djunits.value.vdouble.scalar.Acceleration;
6 import org.djunits.value.vdouble.scalar.Length;
7 import org.djunits.value.vdouble.scalar.Speed;
8
9
10
11
12
13
14
15
16
17
18 public class GtuCharacteristics implements Serializable
19 {
20
21
22 private static final long serialVersionUID = 20160000L;
23
24
25 private final GtuType gtuType;
26
27
28 private final Length length;
29
30
31 private final Length width;
32
33
34 private final Speed maximumSpeed;
35
36
37 private final Acceleration maximumAcceleration;
38
39
40 private final Acceleration maximumDeceleration;
41
42
43 private final Length front;
44
45
46
47
48
49
50
51
52
53
54
55 public GtuCharacteristics(final GtuType gtuType, final Length length, final Length width, final Speed maximumSpeed,
56 final Acceleration maximumAcceleration, final Acceleration maximumDeceleration, final Length front)
57 {
58 this.gtuType = gtuType;
59 this.length = length;
60 this.width = width;
61 this.maximumSpeed = maximumSpeed;
62 this.maximumAcceleration = maximumAcceleration;
63 this.maximumDeceleration = maximumDeceleration;
64 this.front = front;
65 }
66
67
68
69
70
71 public final GtuType getGtuType()
72 {
73 return this.gtuType;
74 }
75
76
77
78
79
80 public final Length getLength()
81 {
82 return this.length;
83 }
84
85
86
87
88
89 public final Length getWidth()
90 {
91 return this.width;
92 }
93
94
95
96
97
98 public final Speed getMaximumSpeed()
99 {
100 return this.maximumSpeed;
101 }
102
103
104
105
106
107 public final Acceleration getMaximumAcceleration()
108 {
109 return this.maximumAcceleration;
110 }
111
112
113
114
115
116 public final Acceleration getMaximumDeceleration()
117 {
118 return this.maximumDeceleration;
119 }
120
121
122
123
124
125 public final Length getFront()
126 {
127 return this.front;
128 }
129
130
131 @Override
132 public String toString()
133 {
134 return "GtuCharacteristics [gtuType=" + this.gtuType + ", length=" + this.length + ", width=" + this.width
135 + ", maximumSpeed=" + this.maximumSpeed + ", maximumAcceleration=" + this.maximumAcceleration
136 + ", maximumDeceleration=" + this.maximumDeceleration + ", front=" + this.front + "]";
137 }
138
139 }