Commit 1828fa1a authored by hengwen's avatar hengwen
Browse files

Set default value of path to car model

parent 8d2a99e6
......@@ -108,7 +108,7 @@ public class SimulationService implements Runnable {
if (v.getCarContainer() == null) {
// logger.info(Paths.get("").toAbsolutePath().toString());
String defaultCarModelPath = Util.getProperties().getProperty("default_car_model_path");
String defaultCarModelPath = Util.getProperties().getProperty("default_car_model_path", "");
if (defaultCarModelPath.equals("")){
// use built in car model
defaultCarModelPath = Util.getWorkDir();
......@@ -126,7 +126,7 @@ public class SimulationService implements Runnable {
// set battery here if needed
vehicle.setBatteryCapacity(10000000);
vehicle.setBatteryPercentage(50);
vehicle.setBatteryPercentage(19.9);
// construct one simulator per sector by iterating over all vehicles for the sectors they need
for (Integer sectorIdx : vehicle.getSectors()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment