14 public double P1_CellLength {
get;
set; }
19 public TimeSpan P2_SimulationStepInterval {
get;
set; }
24 private const double MetersInKilometer = 1000.0;
29 private const double SecondsInHour = 3600.0;
36 internal int FromKphSpeedToSimSpeed(
double kph)
38 return (
int)Math.Round(kph *
39 (MetersInKilometer * P2_SimulationStepInterval.TotalSeconds) /
40 (SecondsInHour * P1_CellLength));
48 internal double FromSimSpeedToKphSpeed(
int simSpeed)
51 (SecondsInHour * P1_CellLength) /
52 (MetersInKilometer * P2_SimulationStepInterval.TotalSeconds);
Class containing parameters related to cellular topology.