Commit 345fec46 authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Added stuff for Dennis

parent 60d7fca3
......@@ -131,7 +131,7 @@ public class DefaultTopologyComponent implements TopologyComponent {
/*
* Legacy support for placement models.
*/
position.set(placementModel.place(this));
updateCurrentLocation(placementModel.place(this));
}
if (registerAsInformationProviderInSiS) {
......
......@@ -409,9 +409,11 @@ public class VehicleMovementModel implements MovementModel, EventHandler {
idComponentMatcher.put(vehicle, simLocationActuator);
hostVehicleIDMatching.put(simLocationActuator.getHost().getId(), vehicle);
} else {
if (idComponentMatcher.size() != 0) {
throw new RuntimeException("Unable to assign new components. Please increase node amount" + (_reuseComponents?".":" or enable the reuse of components."));
}
}
}
return idComponentMatcher.get(vehicle);
}
......
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