-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
360 lines (312 loc) · 9.13 KB
/
index.html
File metadata and controls
360 lines (312 loc) · 9.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Train Scheduling Optimization Flow</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
color: #333;
line-height: 1.6;
padding: 20px;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
padding: 30px;
}
header {
text-align: center;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid #eaeaea;
}
h1 {
color: #2c3e50;
font-size: 32px;
margin-bottom: 10px;
}
.subtitle {
color: #7f8c8d;
font-size: 18px;
max-width: 700px;
margin: 0 auto;
}
.flowchart-container {
display: flex;
justify-content: center;
overflow-x: auto;
padding: 20px 0;
}
.flowchart {
position: relative;
min-width: 900px;
}
/* Node styling */
.node {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
border: 2px solid;
font-weight: 500;
z-index: 2;
}
.node-rect {
border-radius: 8px;
padding: 15px;
}
.node-diamond {
transform: rotate(45deg);
width: 120px;
height: 120px;
}
.node-diamond .content {
transform: rotate(-45deg);
width: 170px; /* Larger to accommodate text */
text-align: center;
}
.node-ellipse {
border-radius: 50%;
padding: 25px 15px;
width: 180px;
height: 100px;
}
.node-parallelogram {
transform: skew(-20deg);
padding: 15px 25px;
}
.node-parallelogram .content {
transform: skew(20deg);
}
/* Specific node colors */
.data-source {
background-color: rgba(123, 179, 201, 0.2);
border-color: #7bb3c9;
color: #2c5c73;
top: 50px;
left: 400px;
width: 200px;
}
.optimization {
background-color: rgba(46, 134, 193, 0.2);
border-color: #2e86c1;
color: #1a4a6b;
top: 180px;
left: 400px;
width: 220px;
}
.conflict {
background-color: rgba(231, 76, 60, 0.2);
border-color: #e74c3c;
color: #943126;
top: 310px;
left: 390px;
width: 140px;
height: 140px;
}
.priority {
background-color: rgba(52, 152, 219, 0.2);
border-color: #3498db;
color: #1c5d8a;
top: 480px;
left: 400px;
width: 240px;
}
.simulation {
background-color: rgba(155, 89, 182, 0.2);
border-color: #9b59b6;
color: #5e3370;
top: 610px;
left: 400px;
width: 220px;
}
.dashboard {
background-color: rgba(26, 188, 156, 0.2);
border-color: #1abc9c;
color: #0e6655;
top: 740px;
left: 380px;
width: 260px;
}
.operations {
background-color: rgba(241, 196, 15, 0.2);
border-color: #f1c40f;
color: #7d6608;
top: 870px;
left: 400px;
width: 200px;
}
.feedback {
background-color: rgba(123, 179, 201, 0.2);
border-color: #7bb3c9;
color: #2c5c73;
top: 1000px;
left: 380px;
width: 240px;
}
.kpi {
background-color: rgba(149, 165, 166, 0.2);
border-color: #95a5a6;
color: #4d5959;
top: 1130px;
left: 400px;
width: 220px;
}
/* Connector arrows */
.connector {
position: absolute;
stroke: #7f8c8d;
stroke-width: 2;
fill: none;
z-index: 1;
}
.arrowhead {
fill: #7f8c8d;
}
.loop-connector {
stroke: #e74c3c;
stroke-width: 2;
fill: none;
stroke-dasharray: 5,5;
}
.loop-text {
position: absolute;
color: #e74c3c;
font-size: 14px;
font-weight: 500;
}
.legend {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
margin-top: 40px;
padding: 20px;
background: #f8f9fa;
border-radius: 8px;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
}
.legend-color {
width: 20px;
height: 20px;
border: 2px solid;
border-radius: 4px;
}
.legend-text {
font-size: 14px;
}
@media (max-width: 1000px) {
.container {
padding: 15px;
}
h1 {
font-size: 26px;
}
.subtitle {
font-size: 16px;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Train Scheduling Optimization Flow</h1>
<p class="subtitle">A comprehensive overview of the data flow and decision-making process in railway scheduling systems</p>
</header>
<div class="flowchart-container">
<div class="flowchart">
<!-- SVG for connectors -->
<svg width="900" height="1300" class="connectors">
<!-- Vertical connectors -->
<path d="M500 80 L500 150" class="connector" />
<path d="M500 200 L500 270" class="connector" />
<path d="M500 380 L500 440" class="connector" />
<path d="M500 530 L500 570" class="connector" />
<path d="M500 680 L500 700" class="connector" />
<path d="M500 830 L500 850" class="connector" />
<path d="M500 980 L500 1020" class="connector" />
<path d="M500 1100 L500 1130" class="connector" />
<!-- Arrowheads -->
<path d="M495 150 L500 160 L505 150" class="arrowhead" />
<path d="M495 270 L500 280 L505 270" class="arrowhead" />
<path d="M495 440 L500 450 L505 440" class="arrowhead" />
<path d="M495 570 L500 580 L505 570" class="arrowhead" />
<path d="M495 700 L500 710 L505 700" class="arrowhead" />
<path d="M495 850 L500 860 L505 850" class="arrowhead" />
<path d="M495 1020 L500 1030 L505 1020" class="arrowhead" />
<path d="M495 1130 L500 1140 L505 1130" class="arrowhead" />
<!-- Feedback loop connector -->
<path d="M500 1080 C500 1120 300 1120 300 900 C300 700 500 700 500 750" class="loop-connector" />
<path d="M505 750 L495 740 L495 760 Z" class="arrowhead" />
<!-- Loop text -->
<text x="350" y="1050" class="loop-text">Real-time Feedback Loop</text>
</svg>
<!-- Process nodes -->
<div class="node node-rect data-source">
<div class="content">Data Sources<br>(TMS, Signaling,<br>Timetables, GPS)</div>
</div>
<div class="node node-rect optimization">
<div class="content">Optimization Engine<br>(OR + AI/ML)</div>
</div>
<div class="node node-diamond conflict">
<div class="content">Conflict Detection<br>(Clashes / Capacity issues?)</div>
</div>
<div class="node node-rect priority">
<div class="content">Priority Handling<br>(Express > Passenger > Freight)</div>
</div>
<div class="node node-rect simulation">
<div class="content">What-if Simulations<br>(Routes, Platforms, Holding)</div>
</div>
<div class="node node-rect dashboard">
<div class="content">Controller Dashboard<br>(Recommendations, Explanations,<br>Override)</div>
</div>
<div class="node node-ellipse operations">
<div class="content">Train Operations<br>(Execution)</div>
</div>
<div class="node node-parallelogram feedback">
<div class="content">Real-time Feedback<br>(Delays, Weather, Breakdowns)</div>
</div>
<div class="node node-rect kpi">
<div class="content">KPIs & Audit Logs<br>(Punctuality, Throughput,<br>Utilization)</div>
</div>
</div>
</div>
<div class="legend">
<div class="legend-item">
<div class="legend-color" style="background-color: rgba(123, 179, 201, 0.2); border-color: #7bb3c9;"></div>
<div class="legend-text">Data Input/Output</div>
</div>
<div class="legend-item">
<div class="legend-color" style="background-color: rgba(46, 134, 193, 0.2); border-color: #2e86c1;"></div>
<div class="legend-text">Processing</div>
</div>
<div class="legend-item">
<div class="legend-color" style="background-color: rgba(231, 76, 60, 0.2); border-color: #e74c3c;"></div>
<div class="legend-text">Decision Point</div>
</div>
<div class="legend-item">
<div class="legend-color" style="background-color: rgba(241, 196, 15, 0.2); border-color: #f1c40f;"></div>
<div class="legend-text">Execution</div>
</div>
</div>
</div>
</body>
</html>