@@ -101,6 +101,22 @@ public final class STDCMRequest {
101
101
@ Json (name = "speed_limit_composition" )
102
102
public String speedLimitComposition = null ;
103
103
104
+ /**
105
+ * Margin of x seconds before the train passage,
106
+ * which means that the path used by the train should be free and available
107
+ * at least x seconds before its passage.
108
+ */
109
+ @ Json (name = "margin_before" )
110
+ public double marginBefore = 0 ;
111
+
112
+ /**
113
+ * Margin of y seconds after the train passage,
114
+ * which means that the path used by the train should be free and available
115
+ * at least y seconds after its passage.
116
+ */
117
+ @ Json (name = "margin_after" )
118
+ public double marginAfter = 0 ;
119
+
104
120
/**
105
121
* Create a default STDCMRequest
106
122
*/
@@ -114,7 +130,9 @@ public STDCMRequest() {
114
130
null ,
115
131
Double .NaN ,
116
132
Double .NaN ,
117
- null
133
+ null ,
134
+ Double .NaN ,
135
+ Double .NaN
118
136
);
119
137
}
120
138
@@ -130,7 +148,9 @@ public STDCMRequest(
130
148
Collection <PathfindingWaypoint > endPoints ,
131
149
double startTime ,
132
150
double endTime ,
133
- String speedLimitComposition
151
+ String speedLimitComposition ,
152
+ double marginBefore ,
153
+ double marginAfter
134
154
) {
135
155
this .infra = infra ;
136
156
this .expectedVersion = expectedVersion ;
@@ -141,6 +161,8 @@ public STDCMRequest(
141
161
this .startTime = startTime ;
142
162
this .endTime = endTime ;
143
163
this .speedLimitComposition = speedLimitComposition ;
164
+ this .marginBefore = marginBefore ;
165
+ this .marginAfter = marginAfter ;
144
166
}
145
167
146
168
public static class RouteOccupancy {
0 commit comments