21 #ifndef RV_BATTERY_MODEL_H 22 #define RV_BATTERY_MODEL_H 24 #include "ns3/traced-value.h" 25 #include "ns3/nstime.h" 26 #include "ns3/event-id.h" double Discharge(double load, Time t)
Discharges the battery.
Simulation virtual time values and global simulation resolution.
void SetOpenCircuitVoltage(double voltage)
Sets open circuit voltage of battery.
Time m_samplingInterval
(1 / sampling interval) = sampling frequency
Introspection did not find any typical Config paths.
void SetBeta(double beta)
Sets the beta value for the battery model.
virtual ~RvBatteryModel()
void HandleEnergyDrainedEvent(void)
Handles the remaining energy going to zero event.
void SetNumOfTerms(int num)
Sets the number of terms of the infinite sum for estimating battery level.
double m_openCircuitVoltage
Time GetLifetime(void) const
void SetCutoffVoltage(double voltage)
Sets cutoff voltage of battery.
virtual double GetInitialEnergy(void) const
virtual void DoInitialize(void)
Defined in ns3::Object.
Time GetSamplingInterval(void) const
void SetSamplingInterval(Time interval)
std::vector< Time > m_timeStamps
virtual void DoDispose(void)
Defined in ns3::Object.
double GetBeta(void) const
double RvModelAFunction(Time t, Time sk, Time sk_1, double beta)
RV model A function.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
int GetNumOfTerms(void) const
virtual double GetSupplyVoltage(void) const
TracedValue< Time > m_lifetime
static TypeId GetTypeId(void)
An identifier for simulation events.
EventId m_currentSampleEvent
TracedValue< double > m_batteryLevel
Battery level is defined as: output of Discharge function / alpha value.
double GetCutoffVoltage(void) const
double GetOpenCircuitVoltage(void) const
virtual double GetRemainingEnergy(void)
virtual void UpdateEnergySource(void)
Implements UpdateEnergySource.
Rakhmatov Vrudhula non-linear battery model.
std::vector< double > m_load
a unique identifier for an interface.
void SetAlpha(double alpha)
Sets the alpha value for the battery model.
double GetAlpha(void) const
virtual double GetEnergyFraction(void)
double GetBatteryLevel(void)