Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
345fec46
Commit
345fec46
authored
Nov 30, 2018
by
Tobias Meuser
Browse files
Added stuff for Dennis
parent
60d7fca3
Changes
2
Show whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/DefaultTopologyComponent.java
View file @
345fec46
...
...
@@ -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
)
{
...
...
src/de/tud/kom/p2psim/impl/topology/movement/VehicleMovementModel.java
View file @
345fec46
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment