2022-04-28 17:02:40 +02:00
|
|
|
#!/usr/bin/env julia
|
|
|
|
|
2022-05-17 18:35:58 +02:00
|
|
|
using TrainRuns
|
2022-04-28 17:02:40 +02:00
|
|
|
|
|
|
|
paths=[]
|
2022-05-17 18:35:58 +02:00
|
|
|
push!(paths, Path("test/data/paths/const.yaml"))
|
|
|
|
push!(paths, Path("test/data/paths/slope.yaml"))
|
|
|
|
push!(paths, Path("test/data/paths/speed.yaml"))
|
|
|
|
push!(paths, Path("test/data/paths/realworld.yaml"))
|
2022-04-28 17:02:40 +02:00
|
|
|
|
|
|
|
settings=[]
|
2022-05-17 18:35:58 +02:00
|
|
|
push!(settings, Settings("test/data/settings/driving_course.yaml"))
|
2022-04-28 17:02:40 +02:00
|
|
|
|
|
|
|
trains=[]
|
2022-05-17 18:35:58 +02:00
|
|
|
push!(trains, Train("test/data/trains/freight.yaml"))
|
|
|
|
push!(trains, Train("test/data/trains/local.yaml"))
|
|
|
|
push!(trains, Train("test/data/trains/longdistance.yaml"))
|
2022-04-28 17:02:40 +02:00
|
|
|
|
2022-05-17 18:35:58 +02:00
|
|
|
driving_courses=[]
|
2022-04-28 17:02:40 +02:00
|
|
|
for path in paths
|
|
|
|
# println(" - - - - - - - - -")
|
|
|
|
# println("path: ", path[:name])
|
|
|
|
for train in trains
|
|
|
|
# println("train: ", train[:name])
|
|
|
|
for settings in settings
|
2022-05-17 18:35:58 +02:00
|
|
|
push!(driving_courses, trainrun(train, path, settings))
|
|
|
|
#driving_course = trainrun(train, path, settings)
|
|
|
|
|
|
|
|
# old: if haskey(settings, :outputFormat) && settings[:outputFormat] == "CSV"
|
|
|
|
# old: exportToCsv(resultsDict, settings)
|
|
|
|
# old: sleep(2)
|
|
|
|
# old: end
|
2022-04-28 17:02:40 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|