Commit 03907fe2 authored by Julian Zobel's avatar Julian Zobel
Browse files

Refactored the way that energy consumation is calculated for the energy...

Refactored the way that energy consumation is calculated for the energy models. Now the consumation is calculated on every energy component for itself, since the state change is of no interest to the energy model. Makes the process easier.
Monitor logging can now be added to the respective energy components, if that is wished again (was removed from the energy model anyways!).
parent 3c2239a0
......@@ -31,7 +31,7 @@ import de.tud.kom.p2psim.api.analyzer.MessageAnalyzer.Reason;
import de.tud.kom.p2psim.api.common.SimHost;
import de.tud.kom.p2psim.api.energy.ComponentType;
import de.tud.kom.p2psim.api.energy.EnergyCommunicationComponent;
import de.tud.kom.p2psim.api.energy.OldEnergyEventListener;
import de.tud.kom.p2psim.api.energy.EnergyEventListener;
import de.tud.kom.p2psim.api.linklayer.LinkLayerMessage;
import de.tud.kom.p2psim.api.linklayer.LinkMessageEvent;
import de.tud.kom.p2psim.api.linklayer.LinkMessageListener;
......@@ -985,7 +985,7 @@ public abstract class AbstractMacLayer implements MacLayer {
}
@Override
public void setEnergyEventListener(OldEnergyEventListener listener) {
public void setEnergyEventListener(EnergyEventListener listener) {
// not interested
}
......
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