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

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

read & write whtc engineering from/to json files

parent b40aca7e
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