A Discrete-Event Network Simulator
API
Variables
third Namespace Reference

Variables

 address = ns.internet.Ipv4AddressHelper()
 
 apDevices = wifi.Install(phy, mac, wifiApNode)
 
 channel = ns.wifi.YansWifiChannelHelper.Default()
 
 clientApps = echoClient.Install(wifiStaNodes.Get (nWifi - 1))
 
 cmd = ns.core.CommandLine()
 
 csma = ns.csma.CsmaHelper()
 
 csmaDevices = csma.Install(csmaNodes)
 
 csmaInterfaces = address.Assign(csmaDevices)
 
 csmaNodes = ns.network.NodeContainer()
 
 echoClient = ns.applications.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma), 9)
 
 echoServer = ns.applications.UdpEchoServerHelper(9)
 
 mac = ns.wifi.WifiMacHelper()
 
 mobility = ns.mobility.MobilityHelper()
 
 nCsma = int(cmd.nCsma)
 
 nWifi = int(cmd.nWifi)
 
 p2pDevices = pointToPoint.Install(p2pNodes)
 
 p2pInterfaces = address.Assign(p2pDevices)
 
 p2pNodes = ns.network.NodeContainer()
 
 phy = ns.wifi.YansWifiPhyHelper.Default()
 
 pointToPoint = ns.point_to_point.PointToPointHelper()
 
 serverApps = echoServer.Install(csmaNodes.Get(nCsma))
 
 ssid = ns.wifi.Ssid ("ns-3-ssid")
 
 stack = ns.internet.InternetStackHelper()
 
 staDevices = wifi.Install(phy, mac, wifiStaNodes)
 
 verbose = cmd.verbose
 
 wifi = ns.wifi.WifiHelper()
 
 wifiApNode = p2pNodes.Get(0)
 
 wifiStaNodes = ns.network.NodeContainer()
 

Variable Documentation

◆ address

third.address = ns.internet.Ipv4AddressHelper()

Definition at line 117 of file third.py.

◆ apDevices

third.apDevices = wifi.Install(phy, mac, wifiApNode)

Definition at line 99 of file third.py.

Referenced by Bug730TestCase.DoRun().

◆ channel

third.channel = ns.wifi.YansWifiChannelHelper.Default()

Definition at line 85 of file third.py.

Referenced by ns3::ChannelList.Add(), ns3::ChannelListPriv.Add(), ns3::RemoteChannelBundle.AddChannel(), ns3::WimaxPhy.Attach(), ns3::WimaxNetDevice.Attach(), BuildSimpleTopology(), ns3::NullMessageSimulatorImpl.CalculateLookAhead(), ns3::DistributedSimulatorImpl.CalculateLookAhead(), ns3::LrWpanPhy.ChannelSupported(), PowerRateAdaptationTest.ConfigureNode(), ns3::YansWifiChannelHelper.Create(), ns3::SpectrumChannelHelper.Create(), ns3::LrWpanSpectrumValueHelper.CreateNoisePowerSpectralDensity(), WifiTest.CreateOne(), InterferenceHelperSequenceTest.CreateOne(), ns3::WifiSpectrumValue5MhzFactory.CreateRfFilter(), ThreeGppHttpObjectTestCase.CreateSimpleInternetNode(), ns3::LrWpanSpectrumValueHelper.CreateTxPowerSpectralDensity(), ns3::WifiSpectrumValue5MhzFactory.CreateTxPowerSpectralDensity(), ns3::ChannelListPriv.DoDispose(), UanTest.DoOnePhyTest(), WaveformGeneratorTestCase.DoRun(), LrWpanPlmeAndPdInterfaceTestCase.DoRun(), PacketSocketAppsTest.DoRun(), PointToPointTest.DoRun(), LrWpanEdTestCase.DoRun(), LrWpanCollisionTestCase.DoRun(), LrWpanErrorDistanceTestCase.DoRun(), SixlowpanFragmentationTest.DoRun(), AcousticModemEnergyTestCase.DoRun(), SpectrumIdealPhyTestCase.DoRun(), ErrorModelSimple.DoRun(), LrWpanAckTestCase.DoRun(), LrWpanCcaTestCase.DoRun(), ThreeGppHttpObjectTestCase.DoRun(), Ipv4FragmentationTest.DoRun(), Ipv6FragmentationTest.DoRun(), BurstErrorModelSimple.DoRun(), AcousticModemEnergyDepletionTestCase.DoRun(), InterferenceHelperSequenceTest.DoRun(), ns3::TcpGeneralTest.DoRun(), DcfImmediateAccessBroadcastTestCase.DoRun(), Bug730TestCase.DoRun(), CsmaPacketSocketTestCase.DoRun(), ChannelAccessTestCase.DoRun(), SetChannelFrequencyTest.DoRun(), CsmaStarTestCase.DoRun(), Bug2222TestCase.DoRun(), Bug2831TestCase.DoRun(), ns3::VsaManager.DoSendVsa(), LinkTest.DoSetup(), LanTest.DoSetup(), TwoLinkTest.DoSetup(), TwoLanTest.DoSetup(), BridgeTest.DoSetup(), TwoBridgeTest.DoSetup(), ns3::CsmaHelper.Install(), ns3::PointToPointHelper.Install(), ns3::SimpleNetDeviceHelper.Install(), ns3::MeshHelper.Install(), ns3::WimaxHelper.Install(), ns3::UanHelper.Install(), ns3::SimpleNetDeviceHelper.InstallPriv(), ns3::CsmaHelper.InstallPriv(), ns3::PyViz::TransmissionSampleKey.operator==(), NetAnimExperiment.Run(), PsrExperiment.Run(), Experiment.Run(), InterferenceExperiment.Run(), CollisionExperiment.Run(), WifiTest.RunOne(), WaveNetDeviceExample.SendOneWsmpPacket(), ChannelAccessTestCase.SendX(), ns3::AdhocAlohaNoackIdealPhyHelper.SetChannel(), ns3::SpectrumAnalyzerHelper.SetChannel(), ns3::WaveformGeneratorHelper.SetChannel(), ns3::SpectrumWifiPhyHelper.SetChannel(), ns3::YansWifiPhy.SetChannel(), ns3::SpectrumWifiPhy.SetChannel(), ns3::SimpleNetDevice.SetChannel(), ns3::UanNetDevice.SetChannel(), ns3::LrWpanHelper.SetChannel(), ns3::LrWpanNetDevice.SetChannel(), ns3::UanPhyDual.SetChannel(), ns3::WimaxNetDevice.SetChannel(), ns3::YansWifiPhyHelper.SetChannel(), ns3::SpectrumPhyHelper.SetChannel(), ns3::UanPhyGen.SetChannel(), StaWifiMacScanningTestCase.Setup(), VanetRoutingExperiment.SetupAdhocDevices(), UanExperiment.SetupCommunications(), TcpTestCase.SetupDefaultSim(), TcpTestCase.SetupDefaultSim6(), DualStackTestCase.SetUpSim(), ns3::SimpleOfdmWimaxPhy.StartSendDummyFecBlock(), ns3::LrWpanSpectrumValueHelper.TotalAvgPower(), and ns3::PyViz.TraceNetDevRxCommon().

◆ clientApps

third.clientApps = echoClient.Install(wifiStaNodes.Get (nWifi - 1))

Definition at line 139 of file third.py.

◆ cmd

third.cmd = ns.core.CommandLine()

Definition at line 40 of file third.py.

◆ csma

third.csma = ns.csma.CsmaHelper()

Definition at line 75 of file third.py.

◆ csmaDevices

third.csmaDevices = csma.Install(csmaNodes)

Definition at line 79 of file third.py.

◆ csmaInterfaces

third.csmaInterfaces = address.Assign(csmaDevices)

Definition at line 122 of file third.py.

◆ csmaNodes

third.csmaNodes = ns.network.NodeContainer()

Definition at line 71 of file third.py.

◆ echoClient

third.echoClient = ns.applications.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma), 9)

Definition at line 134 of file third.py.

◆ echoServer

third.echoServer = ns.applications.UdpEchoServerHelper(9)

Definition at line 128 of file third.py.

◆ mac

third.mac = ns.wifi.WifiMacHelper()

Definition at line 92 of file third.py.

Referenced by ns3::WaveNetDevice.AddMac(), ns3::MeshHelper.AssignStreams(), ns3::WifiHelper.AssignStreams(), AssignWifiRandomStreams(), ns3::dot11s::AirtimeLinkMetricCalculator.CalculateMetric(), ns3::WaveNetDevice.CancelTx(), PowerRateAdaptationTest.ConfigureNode(), ns3::WifiMacHelper.Create(), ns3::MeshHelper.CreateInterface(), UanTest.CreateNode(), WifiTest.CreateOne(), InterferenceHelperSequenceTest.CreateOne(), CreateTap(), ns3::SimpleTag.Deserialize(), ns3::Icmpv6OptionLinkLayerAddress.Deserialize(), ns3::WaveNetDevice.DoDispose(), ns3::dsr::DsrRouting.DoDispose(), ns3::WaveNetDevice.DoInitialize(), Bug730TestCase.DoRun(), Bug2222TestCase.DoRun(), Bug2483TestCase.DoRun(), Bug2831TestCase.DoRun(), ns3::VsaManager.DoSendVsa(), ns3::WifiNetDevice.FlowControlConfig(), ns3::WaveNetDevice.ForwardUp(), ns3::dot11s::PeerManagementProtocol.Install(), ns3::dot11s::HwmpProtocol.Install(), ns3::flame::FlameProtocol.Install(), ns3::WaveHelper.Install(), ns3::UanHelper.Install(), ns3::WifiHelper.Install(), ns3::LteHelper.InstallSingleEnbDevice(), ns3::LteHelper.InstallSingleUeDevice(), ns3::NdiscCache::Entry.MarkReachable(), ns3::NdiscCache::Entry.MarkStale(), ns3::DefaultChannelScheduler.NotifyGuardSlotStart(), ns3::aodv::RoutingProtocol.NotifyInterfaceDown(), ns3::aodv::RoutingProtocol.NotifyInterfaceUp(), ns3.ReadFrom(), ns3::VsaManager.ReceiveVsc(), ns3::Dot11sStack.Report(), ns3::Dot11sStack.ResetStats(), Experiment.Run(), ns3::WaveNetDevice.Send(), ns3::WaveNetDevice.SendX(), ns3::SimpleTag.Serialize(), ns3::Icmpv6OptionLinkLayerAddress.Serialize(), ns3::WifiNetDevice.SetMac(), ns3::LrWpanNetDevice.SetMac(), ns3::LrWpanCsmaCa.SetMac(), ns3::UanNetDevice.SetMac(), ns3::UanPhyDual.SetMac(), ns3::UanPhyGen.SetMac(), SetMacAddress(), ns3::NdiscCache::Entry.SetMacAddress(), ns3::TapFdNetDeviceHelper.SetTapMacAddress(), StaWifiMacScanningTestCase.Setup(), ns3::RraaWifiManager.SetupMac(), ns3::RrpaaWifiManager.SetupMac(), ns3::WifiRemoteStationManager.SetupMac(), ns3::MinstrelWifiManager.SetupMac(), ns3::MinstrelHtWifiManager.SetupMac(), ns3::dsr::DsrRouting.Start(), ns3::ChannelScheduler.StartSch(), StaWifiMacScanningTestCase.TurnBeaconGenerationOn(), and ns3.WriteTo().

◆ mobility

third.mobility = ns.mobility.MobilityHelper()

Definition at line 101 of file third.py.

Referenced by OcbWifiMacTestCase.AdvancePosition(), ns3::MobilityHelper.AssignStreams(), ns3::LrWpanNetDevice.CompleteConfig(), PowerRateAdaptationTest.ConfigureNode(), CourseChange(), Ns2MobilityHelperTest.CourseChange(), VanetRoutingExperiment.CourseChange(), ns3::MobilityHelper.CourseChanged(), UanTest.CreateNode(), PeerManagementProtocolRegressionTest.CreateNodes(), Bug772ChainTest.CreateNodes(), HwmpProactiveRegressionTest.CreateNodes(), FlameRegressionTest.CreateNodes(), HwmpDoRfRegressionTest.CreateNodes(), HwmpSimplestRegressionTest.CreateNodes(), HwmpReactiveRegressionTest.CreateNodes(), AodvExample.CreateNodes(), MeshTest.CreateNodes(), ChainRegressionTest.CreateNodes(), WifiTest.CreateOne(), InterferenceHelperSequenceTest.CreateOne(), WaveNetDeviceExample.CreateWaveNodes(), TestCaseHelper.CreatWaveDevice(), WifiMsduAggregatorThroughputTest.DoRun(), WifiAcMappingTest.DoRun(), ns3::LenaDeactivateBearerTestCase.DoRun(), MobilityTraceTestCase.DoRun(), LenaMimoTestCase.DoRun(), LenaHarqTestCase.DoRun(), LenaRrFfMacSchedulerTestCase.DoRun(), LenaDataPhyErrorModelTestCase.DoRun(), LteRrcConnectionEstablishmentTestCase.DoRun(), LenaPfFfMacSchedulerTestCase1.DoRun(), LenaCqaFfMacSchedulerTestCase1.DoRun(), LenaTdBetFfMacSchedulerTestCase1.DoRun(), LenaTdMtFfMacSchedulerTestCase.DoRun(), LenaTtaFfMacSchedulerTestCase.DoRun(), LenaFdBetFfMacSchedulerTestCase1.DoRun(), LenaFdMtFfMacSchedulerTestCase.DoRun(), LteInterferenceHardFrTestCase.DoRun(), RandomRoomPositionAllocatorTestCase.DoRun(), LenaPssFfMacSchedulerTestCase1.DoRun(), LenaTdTbfqFfMacSchedulerTestCase1.DoRun(), LteLinkAdaptationTestCase.DoRun(), LenaFdTbfqFfMacSchedulerTestCase1.DoRun(), LteSecondaryCellSelectionTestCase.DoRun(), AcousticModemEnergyTestCase.DoRun(), SpectrumIdealPhyTestCase.DoRun(), LtePathlossModelSystemTestCase.DoRun(), CarrierAggregationTestCase.DoRun(), LteEnbAntennaTestCase.DoRun(), LteCqiGenerationTestCase.DoRun(), LteX2HandoverTestCase.DoRun(), LteInterferenceTestCase.DoRun(), BuildingsHelperOneTestCase.DoRun(), LteIpv6RoutingTestCase.DoRun(), CarrierAggregationConfigTestCase.DoRun(), LteInterferenceStrictFrTestCase.DoRun(), LenaPfFfMacSchedulerTestCase2.DoRun(), LenaTdBetFfMacSchedulerTestCase2.DoRun(), LenaDlCtrlPhyErrorModelTestCase.DoRun(), LteUeMeasurementsTestCase.DoRun(), LenaFdBetFfMacSchedulerTestCase2.DoRun(), LenaTdTbfqFfMacSchedulerTestCase2.DoRun(), LteDownlinkPowerControlTestCase.DoRun(), LteCellSelectionTestCase.DoRun(), LenaCqaFfMacSchedulerTestCase2.DoRun(), LenaPssFfMacSchedulerTestCase2.DoRun(), LenaFdTbfqFfMacSchedulerTestCase2.DoRun(), LteHardFrTestCase.DoRun(), LteCqiGenerationDlPowerControlTestCase.DoRun(), LteUplinkOpenLoopPowerControlTestCase.DoRun(), SameRoomPositionAllocatorTestCase.DoRun(), LteUplinkClosedLoopPowerControlAbsoluteModeTestCase.DoRun(), LteDownlinkPowerControlRrcConnectionReconfigurationTestCase.DoRun(), LteStrictFrTestCase.DoRun(), LteUplinkClosedLoopPowerControlAccumulatedModeTestCase.DoRun(), LteUeMeasurementsPiecewiseTestCase1.DoRun(), AcousticModemEnergyDepletionTestCase.DoRun(), Ns2MobilityHelperTest.DoRun(), LteStrictFrAreaTestCase.DoRun(), LteSoftFrAreaTestCase.DoRun(), LteUeMeasurementsPiecewiseTestCase2.DoRun(), WaypointMobilityModelViaHelper.DoRun(), LteSoftFfrAreaTestCase.DoRun(), LteEnhancedFfrAreaTestCase.DoRun(), LteDistributedFfrAreaTestCase.DoRun(), LteUeMeasurementsHandoverTestCase.DoRun(), Bug730TestCase.DoRun(), LteRrcConnectionEstablishmentErrorTestCase.DoRun(), Bug2222TestCase.DoRun(), Bug2483TestCase.DoRun(), OcbWifiMacTestCase.GetCurrentPosition(), ns3::AnimationInterface.GetMovedNodes(), Experiment.GetPosition(), NodeStatistics.GetPosition(), GetPosition(), LteAggregationThroughputScaleTestCase.GetThroughput(), ns3::TvSpectrumTransmitterHelper.InstallRandomRegionalTransmitters(), LteFadingTestSuite.LteFadingTestSuite(), ns3::AnimationInterface.MobilityCourseChangeTrace(), OcbWifiMacTestCase.PostDeviceConfiguration(), ns3::MobilityHelper.PushReferenceMobilityModel(), NetAnimExperiment.Run(), Experiment.Run(), ns3::WimaxPhy.SetMobility(), ns3::WifiPhy.SetMobility(), Experiment.SetPosition(), SetPosition(), NodeStatistics.SetPosition(), StaWifiMacScanningTestCase.Setup(), DsdvManetExample.SetupMobility(), and WifiInterferenceTestCase.WifiSimpleInterference().

◆ nCsma

third.nCsma = int(cmd.nCsma)

Definition at line 41 of file third.py.

◆ nWifi

third.nWifi = int(cmd.nWifi)

Definition at line 43 of file third.py.

◆ p2pDevices

third.p2pDevices = pointToPoint.Install(p2pNodes)

Definition at line 69 of file third.py.

◆ p2pInterfaces

third.p2pInterfaces = address.Assign(p2pDevices)

Definition at line 119 of file third.py.

◆ p2pNodes

third.p2pNodes = ns.network.NodeContainer()

Definition at line 62 of file third.py.

◆ phy

third.phy = ns.wifi.YansWifiPhyHelper.Default()

Definition at line 86 of file third.py.

Referenced by ns3::YansWifiChannel.Add(), ns3::LrWpanHelper.AddMobility(), ns3::UanTransducerHd.AddPhy(), ns3::WaveNetDevice.AddPhy(), ns3::SingleModelSpectrumChannel.AddRx(), ns3::MultiModelSpectrumChannel.AddRx(), ns3::WimaxChannel.Attach(), ns3::UanMacAloha.AttachPhy(), ns3::UanMacRcGw.AttachPhy(), ns3::UanMacCw.AttachPhy(), ns3::UanMacRc.AttachPhy(), ns3::MinstrelHtWifiManager.CalculateFirstMpduTxDuration(), ns3::MinstrelHtWifiManager.CalculateMpduTxDuration(), LteHandoverTargetTestCase.CellShutdownCallback(), TxDurationTest.CheckPayloadDuration(), TxDurationTest.CheckTxDuration(), PowerRateAdaptationTest.ConfigureNode(), ns3::SpectrumWifiPhyHelper.Create(), ns3::YansWifiPhyHelper.Create(), ns3::SpectrumPhyHelper.Create(), ns3::MeshHelper.CreateInterface(), UanTest.CreateNode(), WifiTest.CreateOne(), InterferenceHelperSequenceTest.CreateOne(), ns3::WimaxHelper.CreatePhy(), ns3::WimaxHelper.CreatePhyWithoutChannel(), ns3::SimpleOfdmWimaxChannel.DoAttach(), ns3::WaveNetDevice.DoDispose(), ns3::MinstrelHtWifiManager.DoGetRtsTxVector(), ns3::WaveNetDevice.DoInitialize(), TvSpectrumTransmitterTestCase.DoRun(), Bug730TestCase.DoRun(), SetChannelFrequencyTest.DoRun(), Bug2222TestCase.DoRun(), ns3::YansWavePhyHelper.EnablePcapInternal(), ns3::WifiPhyHelper.EnablePcapInternal(), ns3::WimaxHelper.EnablePcapInternal(), ns3::MeshWifiInterfaceMac.GetFrequencyChannel(), ns3::MinstrelHtWifiManager.GetHtDeviceMcsList(), ns3::MinstrelHtWifiManager.GetVhtDeviceMcsList(), TcpYeahIncrementTest.IncreaseWindow(), ns3::WaveformGeneratorHelper.Install(), ns3::TvSpectrumTransmitterHelper.Install(), ns3::AdhocAlohaNoackIdealPhyHelper.Install(), ns3::SpectrumAnalyzerHelper.Install(), ns3::WimaxHelper.Install(), ns3::WaveHelper.Install(), ns3::UanHelper.Install(), ns3::WifiHelper.Install(), ns3::TvSpectrumTransmitterHelper.InstallAdjacent(), ns3::LteHelper.InstallSingleEnbDevice(), ns3::LteHelper.InstallSingleUeDevice(), ns3::MinstrelHtWifiManager.IsValidMcs(), NodeStatistics.NodeStatistics(), ns3::YansWifiChannel.Receive(), ns3::ChannelAccessManager.RemovePhyListener(), ns3::MacLow.RemovePhyMacLowListener(), Experiment.Run(), ns3::SimpleOfdmWimaxChannel.Send(), ns3::WifiNetDevice.SetPhy(), ns3::LrWpanNetDevice.SetPhy(), ns3::UanNetDevice.SetPhy(), ns3::MacLow.SetPhy(), ns3::NonCommunicatingNetDevice.SetPhy(), ns3::WimaxNetDevice.SetPhy(), ns3::AlohaNoackNetDevice.SetPhy(), ns3::LrWpanMac.SetPhy(), StaWifiMacScanningTestCase.Setup(), ns3::IdealWifiManager.SetupPhy(), ns3::ParfWifiManager.SetupPhy(), ns3::AparfWifiManager.SetupPhy(), ns3::RraaWifiManager.SetupPhy(), ns3::RrpaaWifiManager.SetupPhy(), ns3::WifiRemoteStationManager.SetupPhy(), NodeStatistics.SetupPhy(), ns3::MinstrelWifiManager.SetupPhy(), ns3::MinstrelHtWifiManager.SetupPhy(), ns3::ChannelAccessManager.SetupPhyListener(), ns3::MacLow.SetupPhyMacLowListener(), ns3::StaWifiMac.SetWifiPhy(), ns3::RegularWifiMac.SetWifiPhy(), ns3::WaveMacLow.StartTransmission(), ns3::MeshWifiInterfaceMac.SwitchFrequencyChannel(), and StaWifiMacScanningTestCase.TurnApOff().

◆ pointToPoint

third.pointToPoint = ns.point_to_point.PointToPointHelper()

Definition at line 65 of file third.py.

◆ serverApps

third.serverApps = echoServer.Install(csmaNodes.Get(nCsma))

Definition at line 130 of file third.py.

◆ ssid

third.ssid = ns.wifi.Ssid ("ns-3-ssid")

◆ stack

third.stack = ns.internet.InternetStackHelper()

Definition at line 112 of file third.py.

◆ staDevices

third.staDevices = wifi.Install(phy, mac, wifiStaNodes)

Definition at line 96 of file third.py.

Referenced by Bug730TestCase.DoRun().

◆ verbose

third.verbose = cmd.verbose

Definition at line 42 of file third.py.

◆ wifi

third.wifi = ns.wifi.WifiHelper()

◆ wifiApNode

third.wifiApNode = p2pNodes.Get(0)

◆ wifiStaNodes

third.wifiStaNodes = ns.network.NodeContainer()

Definition at line 81 of file third.py.