SetGroupName for energy module

This commit is contained in:
Tommaso Pecorella
2015-03-29 16:12:50 +02:00
parent 9377247c1f
commit c4765573f9
12 changed files with 12 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ EnergyHarvesterContainer::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::EnergyHarvesterContainer")
.SetParent<Object> ()
.SetGroupName ("Energy")
.AddConstructor<EnergyHarvesterContainer> ()
;
return tid;

View File

@@ -32,6 +32,7 @@ EnergySourceContainer::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::EnergySourceContainer")
.SetParent<Object> ()
.SetGroupName ("Energy")
.AddConstructor<EnergySourceContainer> ()
;
return tid;

View File

@@ -39,6 +39,7 @@ BasicEnergyHarvester::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::BasicEnergyHarvester")
.SetParent<EnergyHarvester> ()
.SetGroupName ("Energy")
.AddConstructor<BasicEnergyHarvester> ()
.AddAttribute ("PeriodicHarvestedPowerUpdateInterval",
"Time between two consecutive periodic updates of the harvested power. By default, the value is updated every 1 s",

View File

@@ -36,6 +36,7 @@ BasicEnergySource::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::BasicEnergySource")
.SetParent<EnergySource> ()
.SetGroupName ("Energy")
.AddConstructor<BasicEnergySource> ()
.AddAttribute ("BasicEnergySourceInitialEnergyJ",
"Initial energy stored in basic energy source.",

View File

@@ -32,6 +32,7 @@ DeviceEnergyModel::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::DeviceEnergyModel")
.SetParent<Object> ()
.SetGroupName ("Energy")
;
return tid;
}

View File

@@ -33,6 +33,7 @@ EnergyHarvester::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::EnergyHarvester")
.SetParent<Object> ()
.SetGroupName ("Energy")
;
return tid;
}

View File

@@ -37,6 +37,7 @@ EnergySource::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::EnergySource")
.SetParent<Object> ()
.SetGroupName ("Energy")
;
return tid;
}

View File

@@ -38,6 +38,7 @@ LiIonEnergySource::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::LiIonEnergySource")
.SetParent<EnergySource> ()
.SetGroupName ("Energy")
.AddConstructor<LiIonEnergySource> ()
.AddAttribute ("LiIonEnergySourceInitialEnergyJ",
"Initial energy stored in basic energy source.",

View File

@@ -37,6 +37,7 @@ RvBatteryModel::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::RvBatteryModel")
.SetParent<EnergySource> ()
.SetGroupName ("Energy")
.AddConstructor<RvBatteryModel> ()
.AddAttribute ("RvBatteryModelPeriodicEnergyUpdateInterval",
"RV battery model sampling interval.",

View File

@@ -35,6 +35,7 @@ SimpleDeviceEnergyModel::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::SimpleDeviceEnergyModel")
.SetParent<DeviceEnergyModel> ()
.SetGroupName ("Energy")
.AddConstructor<SimpleDeviceEnergyModel> ()
.AddTraceSource ("TotalEnergyConsumption",
"Total energy consumption of the radio device.",

View File

@@ -38,6 +38,7 @@ WifiRadioEnergyModel::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::WifiRadioEnergyModel")
.SetParent<DeviceEnergyModel> ()
.SetGroupName ("Energy")
.AddConstructor<WifiRadioEnergyModel> ()
.AddAttribute ("IdleCurrentA",
"The default radio Idle current in Ampere.",

View File

@@ -39,6 +39,7 @@ WifiTxCurrentModel::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::WifiTxCurrentModel")
.SetParent<Object> ()
.SetGroupName ("Energy")
;
return tid;
}