mirror of
https://github.com/davidalves04/Trabalho-Pratico-SD.git
synced 2025-12-08 20:43:32 +00:00
added bike//heavy prob & cross time
This commit is contained in:
@@ -81,6 +81,18 @@ public class SimulationConfig {
|
|||||||
return Double.parseDouble(properties.getProperty("vehicle.crossing.time.light", "2.0"));
|
return Double.parseDouble(properties.getProperty("vehicle.crossing.time.light", "2.0"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double getBikeVehicleProbability() {
|
||||||
|
return Double.parseDouble(properties.getProperty("vehicle.probability.bike", "0.0"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getBikeVehicleCrossingTime() {
|
||||||
|
return Double.parseDouble(properties.getProperty("vehicle.crossing.time.bike", "1.5"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getHeavyVehicleProbability() {
|
||||||
|
return Double.parseDouble(properties.getProperty("vehicle.probability.heavy", "0.0"));
|
||||||
|
}
|
||||||
|
|
||||||
public double getHeavyVehicleCrossingTime() {
|
public double getHeavyVehicleCrossingTime() {
|
||||||
return Double.parseDouble(properties.getProperty("vehicle.crossing.time.heavy", "4.0"));
|
return Double.parseDouble(properties.getProperty("vehicle.crossing.time.heavy", "4.0"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user