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
19 public class GTUCharacteristics implements Serializable
20 {
21
22
23 private static final long serialVersionUID = 20160000L;
24
25
26 private final GTUType gtuType;
27
28
29 private final Length length;
30
31
32 private final Length width;
33
34
35 private final Speed maximumSpeed;
36
37
38 private final Acceleration maximumAcceleration;
39
40
41 private final Acceleration maximumDeceleration;
42
43
44 private final Length front;
45
46
47
48
49
50
51
52
53
54
55
56 public GTUCharacteristics(final GTUType gtuType, final Length length, final Length width, final Speed maximumSpeed,
57 final Acceleration maximumAcceleration, final Acceleration maximumDeceleration, final Length front)
58 {
59 this.gtuType = gtuType;
60 this.length = length;
61 this.width = width;
62 this.maximumSpeed = maximumSpeed;
63 this.maximumAcceleration = maximumAcceleration;
64 this.maximumDeceleration = maximumDeceleration;
65 this.front = front;
66 }
67
68
69
70
71
72 public final GTUType getGTUType()
73 {
74 return this.gtuType;
75 }
76
77
78
79
80
81 public final Length getLength()
82 {
83 return this.length;
84 }
85
86
87
88
89
90 public final Length getWidth()
91 {
92 return this.width;
93 }
94
95
96
97
98
99 public final Speed getMaximumSpeed()
100 {
101 return this.maximumSpeed;
102 }
103
104
105
106
107
108 public final Acceleration getMaximumAcceleration()
109 {
110 return this.maximumAcceleration;
111 }
112
113
114
115
116
117 public final Acceleration getMaximumDeceleration()
118 {
119 return this.maximumDeceleration;
120 }
121
122
123
124
125
126 public final Length getFront()
127 {
128 return this.front;
129 }
130
131
132 @Override
133 public String toString()
134 {
135 return "GTUCharacteristics [gtuType=" + this.gtuType + ", length=" + this.length + ", width=" + this.width
136 + ", maximumSpeed=" + this.maximumSpeed + ", maximumAcceleration=" + this.maximumAcceleration
137 + ", maximumDeceleration=" + this.maximumDeceleration + ", front=" + this.front + "]";
138 }
139
140 }