INET Framework for OMNeT++/OMNEST
|
This class is a base interface that must be implemented by energy consumer models to integrate with other parts of the power model. More...
#include <IEnergyConsumer.h>
Public Member Functions | |
virtual | ~IEnergyConsumer () |
virtual IEnergySource * | getEnergySource () const =0 |
Returns the energy source that provides energy for this energy consumer. More... | |
This class is a base interface that must be implemented by energy consumer models to integrate with other parts of the power model.
This interface is extended by various energy consumer interfaces. Actual energy consumer implementations should implement one of the derived interfaces.
See the corresponding NED file for more details.
|
pure virtual |
Returns the energy source that provides energy for this energy consumer.
This function never returns nullptr.
Implemented in inet::physicallayer::StateBasedCcEnergyConsumer, inet::physicallayer::StateBasedEpEnergyConsumer, and inet::power::AlternatingEpEnergyConsumer.