Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 5f563e29 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

Merge pull request #295 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:master to master

* commit '9a5684f9':
  read & write whtc engineering from/to json files
parents b40aca7e 9a5684f9
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@ Public Class JSONFileWriter
body.Add("WHTC-Urban", eng.WHTCUrban)
body.Add("WHTC-Rural", eng.WHTCRural)
body.Add("WHTC-Motorway", eng.WHTCMotorway)
body.Add("WHTC-Engineering", eng.WHTCEngineering)
body.Add("ColdHotBalancingFactor", eng.ColdHotBalancingFactor)
WriteFile(header, body, filename)
......
......@@ -99,7 +99,13 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual double WHTCEngineering
{
get { return 1; }
get
{
if (Body["WHTC-Engineering"] == null) {
return 1;
}
return Body.GetEx<double>("WHTC-Engineering");
}
}
public virtual double WHTCMotorway
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment