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
6bbe4677
Commit
6bbe4677
authored
Apr 18, 2022
by
Julian Zobel
Browse files
logging in MacLayer
parent
4ae99493
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/linklayer/mac/AbstractMacLayer.java
View file @
6bbe4677
...
...
@@ -50,6 +50,7 @@ import de.tud.kom.p2psim.impl.util.LiveMonitoring.ProgressValue;
import
de.tudarmstadt.maki.simonstrator.api.Event
;
import
de.tudarmstadt.maki.simonstrator.api.Message
;
import
de.tudarmstadt.maki.simonstrator.api.Monitor
;
import
de.tudarmstadt.maki.simonstrator.api.Monitor.Level
;
import
de.tudarmstadt.maki.simonstrator.api.Randoms
;
import
de.tudarmstadt.maki.simonstrator.api.Time
;
import
de.tudarmstadt.maki.simonstrator.api.component.core.MonitorComponent.AnalyzerNotAvailableException
;
...
...
@@ -249,15 +250,15 @@ public abstract class AbstractMacLayer implements MacLayer {
for
(
EnergyCommunicationComponent
comp
:
energyComponents
)
{
if
(
comp
.
getPhyType
().
equals
(
phy
))
{
energyComponent
=
comp
;
break
;
}
}
}
if
(
energyComponent
==
null
)
{
// Log.warn("The MAC-Layer did not find an Energy-Component for "
// + phy.toString()
// +
// ". This is fine, if you did not intend to measure energy consumption. Otherwise, please check your configuration!");
if
(
energyComponent
==
null
)
{
Monitor
.
log
(
getClass
(),
Level
.
INFO
,
"The MAC-Layer did not find an Energy-Component for "
+
phy
.
toString
()
+
". This is fine, if you did not intend to measure energy consumption. "
+
"Otherwise, please check your configuration!"
,
""
);
energyComponent
=
new
EnergyComponentStub
(
phy
);
}
...
...
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