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