2022-04-28 17:02:40 +02:00
|
|
|
#!/usr/bin/env julia
|
|
|
|
|
2022-05-04 16:53:58 +02:00
|
|
|
using TrainRuns
|
2022-04-28 17:02:40 +02:00
|
|
|
|
2022-05-04 16:34:17 +02:00
|
|
|
train = Train("test/data/trains/freight.yaml")
|
|
|
|
path = Path("test/data/paths/const.yaml")
|
2022-04-28 17:02:40 +02:00
|
|
|
|
2022-06-03 12:26:58 +02:00
|
|
|
runtime = trainrun(train, path)[end, :t]
|
2022-04-28 17:02:40 +02:00
|
|
|
|
|
|
|
println("The train needs $runtime seconds for the running path.")
|