A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
wifi-sleep.cc File Reference
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/mobility-module.h"
#include "ns3/config-store-module.h"
#include "ns3/wifi-module.h"
#include "ns3/internet-module.h"
#include "ns3/applications-module.h"
#include "ns3/energy-module.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
+ Include dependency graph for wifi-sleep.cc:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 
template<int node>
void PhyStateTrace (std::string context, Time start, Time duration, enum WifiPhy::State state)
 
template<int node>
void RemainingEnergyTrace (double oldValue, double newValue)
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 93 of file wifi-sleep.cc.

References ns3::ListPositionAllocator::Add(), ns3::EnergySourceContainer::Add(), ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::NodeContainer::Begin(), ns3::Config::Connect(), ns3::YansWifiChannelHelper::Create(), ns3::NodeContainer::Create(), ns3::WifiTxCurrentModel::DbmToW(), ns3::YansWifiChannelHelper::Default(), ns3::NqosWifiMacHelper::Default(), ns3::YansWifiPhyHelper::Default(), ns3::Simulator::Destroy(), first::devices, ns3::YansWifiPhyHelper::DLT_IEEE802_11_RADIO, ns3::WifiHelper::EnableLogComponents(), ns3::NodeContainer::End(), ns3::EnergySourceContainer::Get(), ns3::NodeContainer::Get(), ns3::Ipv4Address::GetAny(), ns3::EnergySourceContainer::GetN(), ns3::Object::GetObject(), ns3::EnergySourceHelper::Install(), ns3::PacketSinkHelper::Install(), ns3::OnOffHelper::Install(), ns3::InternetStackHelper::Install(), ns3::DeviceEnergyModelHelper::Install(), ns3::WifiHelper::Install(), ns3::MobilityHelper::Install(), ns3::MakeCallback(), NS_LOG_INFO, ns3::CommandLine::Parse(), ns3::Simulator::Run(), ns3::Seconds(), ns3::BasicEnergySourceHelper::Set(), ns3::WifiRadioEnergyModelHelper::Set(), ns3::YansWifiPhyHelper::Set(), ns3::OnOffHelper::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::YansWifiPhyHelper::SetChannel(), ns3::MobilityHelper::SetMobilityModel(), ns3::YansWifiPhyHelper::SetPcapDataLinkType(), ns3::MobilityHelper::SetPositionAllocator(), ns3::WifiHelper::SetRemoteStationManager(), ns3::WifiHelper::SetStandard(), ns3::WifiRadioEnergyModelHelper::SetTxCurrentModel(), ns3::NqosWifiMacHelper::SetType(), ns3::ApplicationContainer::Start(), ns3::Simulator::Stop(), ns3::ApplicationContainer::Stop(), verbose, and ns3::WIFI_PHY_STANDARD_80211b.

+ Here is the call graph for this function:

template<int node>
void PhyStateTrace ( std::string  context,
Time  start,
Time  duration,
enum WifiPhy::State  state 
)

Definition at line 81 of file wifi-sleep.cc.

References ns3::Time::GetSeconds(), and ns3::Simulator::Now().

+ Here is the call graph for this function:

template<int node>
void RemainingEnergyTrace ( double  oldValue,
double  newValue 
)

Definition at line 70 of file wifi-sleep.cc.

References ns3::Time::GetSeconds(), and ns3::Simulator::Now().

+ Here is the call graph for this function: