rename WifiPhy to YansWifiPhy and add WifiPhy abstract base class.

This commit is contained in:
Mathieu Lacage
2008-06-11 11:52:40 -07:00
parent 8aca3e058b
commit 619600b607
12 changed files with 1658 additions and 1492 deletions

View File

@@ -137,7 +137,7 @@ main (int argc, char *argv[])
//
WifiHelper wifi;
wifi.SetMac ("ns3::AdhocWifiMac");
wifi.SetPhy ("ns3::WifiPhy");
wifi.SetPhy ("ns3::YansWifiPhy");
NetDeviceContainer backboneDevices = wifi.Install (backbone);
//
// Add the IPv4 protocol stack to the nodes in our container
@@ -246,7 +246,7 @@ main (int argc, char *argv[])
//
WifiHelper wifiInfra;
wifiInfra.SetMac ("ns3::AdhocWifiMac");
wifiInfra.SetPhy ("ns3::WifiPhy");
wifiInfra.SetPhy ("ns3::YansWifiPhy");
NetDeviceContainer infraDevices = wifiInfra.Install (infra);
// Add the IPv4 protocol stack to the nodes in our container

View File

@@ -172,7 +172,7 @@ int main (int argc, char *argv[])
GnuplotDataset dataset;
wifi.SetMac ("ns3::AdhocWifiMac");
wifi.SetPhy ("ns3::WifiPhy");
wifi.SetPhy ("ns3::YansWifiPhy");
NS_LOG_DEBUG ("54");
experiment = Experiment ("54mb");
@@ -234,7 +234,7 @@ int main (int argc, char *argv[])
gnuplot = Gnuplot ("rate-control.png");
Config::SetDefault ("ns3::WifiPhy::Standard", StringValue ("holland"));
Config::SetDefault ("ns3::YansWifiPhy::Standard", StringValue ("holland"));
NS_LOG_DEBUG ("arf");

View File

@@ -138,7 +138,7 @@ int main (int argc, char *argv[])
channel->SetPropagationLossModel (log);
Ssid ssid = Ssid ("wifi-default");
wifi.SetPhy ("ns3::WifiPhy");
wifi.SetPhy ("ns3::YansWifiPhy");
wifi.SetRemoteStationManager ("ns3::ArfWifiManager");
// setup stas.
wifi.SetMac ("ns3::NqstaWifiMac",