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
f1cf5ffb
Commit
f1cf5ffb
authored
Jul 03, 2015
by
Björn Richerzhagen
Browse files
Merge branch 'master' into 'releases/v2-3'
Fixed POM Minor, non-breaking updates to the v2.3 version See merge request !10
parents
2549931d
ecd7a2fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
f1cf5ffb
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
maki
</groupId>
<artifactId>
simonstrator-peerfactsim
</artifactId>
...
...
src/de/tud/kom/p2psim/impl/common/DefaultHost.java
View file @
f1cf5ffb
...
...
@@ -30,6 +30,8 @@ import de.tud.kom.p2psim.api.linklayer.LinkLayer;
import
de.tud.kom.p2psim.api.network.NetLayer
;
import
de.tud.kom.p2psim.api.network.SimNetworkComponent
;
import
de.tud.kom.p2psim.api.topology.TopologyComponent
;
import
de.tudarmstadt.maki.simonstrator.api.Monitor
;
import
de.tudarmstadt.maki.simonstrator.api.Monitor.Level
;
import
de.tudarmstadt.maki.simonstrator.api.component.ComponentNotAvailableException
;
import
de.tudarmstadt.maki.simonstrator.api.component.HostComponent
;
import
de.tudarmstadt.maki.simonstrator.api.component.transport.TransportComponent
;
...
...
@@ -108,7 +110,7 @@ public class DefaultHost implements SimHost {
try
{
networkComponent
=
getComponent
(
SimNetworkComponent
.
class
);
}
catch
(
ComponentNotAvailableException
e
)
{
throw
new
AssertionError
(
"No NetworkComponent found
!"
);
Monitor
.
log
(
DefaultHost
.
class
,
Level
.
ERROR
,
"No NetworkComponent found in the current configuration
!"
);
}
}
return
networkComponent
;
...
...
@@ -120,7 +122,7 @@ public class DefaultHost implements SimHost {
try
{
transportComponent
=
getComponent
(
TransportComponent
.
class
);
}
catch
(
ComponentNotAvailableException
e
)
{
throw
new
AssertionError
(
"No TransportComponent found
!"
);
Monitor
.
log
(
DefaultHost
.
class
,
Level
.
ERROR
,
"No TransportComponent found in the current configuration
!"
);
}
}
return
transportComponent
;
...
...
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