TrainRun.jl/examples/ExtendedWorkingExample.jl

43 lines
1.3 KiB
Julia
Raw Normal View History

2021-12-13 12:24:56 +01:00
#!/usr/bin/env julia
# -*- coding: UTF-8 -*-
# __julia-version__ = 1.7.0
# __author__ = "Max Kannenberg"
# __copyright__ = "2021"
# __license__ = "ISC"
include("../src/TrainRun.jl")
using .TrainRun
allPaths=[]
push!(allPaths, importYamlFile(:path, "data/paths/path_1_10km_nConst_vConst.yaml"))
push!(allPaths, importYamlFile(:path, "data/paths/path_2_10km_nVar_vConst.yaml"))
push!(allPaths, importYamlFile(:path, "data/paths/path_3_10km_nConst_vVar.yaml"))
push!(allPaths, importYamlFile(:path, "data/paths/path_4_real_Germany_EastSaxony_DG-DN.yaml"))
2021-12-13 12:24:56 +01:00
allSettings=[]
push!(allSettings, importYamlFile(:settings, "data/settings.yaml"))
2021-12-13 12:24:56 +01:00
allTrains=[]
push!(allTrains, importYamlFile(:train, "data/trains/train_freight_V90withOreConsist.yaml"))
push!(allTrains, importYamlFile(:train, "data/trains/train_passenger_SiemensDesiroClassic.yaml"))
push!(allTrains, importYamlFile(:train, "data/trains/train_passenger_IC2.yaml"))
2021-12-13 12:24:56 +01:00
for path in allPaths
2021-12-13 12:24:56 +01:00
# println(" - - - - - - - - -")
# println("path: ", path)
for train in allTrains
# println("train: ", train)
for settings in allSettings
testDict=calculateDrivingDynamics(train, path, settings)
2021-12-13 12:24:56 +01:00
sleep(2)
# println("")
end
end
# println("")
end
# println("")
# println("________________________")
# println("")