#include <iostream>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/netanim-module.h"
#include "ns3/applications-module.h"
#include "ns3/point-to-point-layout-module.h"
Go to the source code of this file.
Classes | |
struct | rgb |
Functions | |
int | main (int argc, char *argv[]) |
void | modify () |
Variables | |
struct rgb | colors [] |
uint32_t | nodeCounterIdDouble1 |
uint32_t | nodeCounterIdDouble2 |
uint32_t | nodeCounterIdUint32 |
AnimationInterface * | pAnim = 0 |
uint32_t | resourceId1 |
uint32_t | resourceId2 |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 114 of file resources_demo.cc.
References ns3::ApplicationContainer::Add(), ns3::AnimationInterface::AddNodeCounter(), ns3::AnimationInterface::AddResource(), ns3::CommandLine::AddValue(), ns3::PointToPointDumbbellHelper::AssignIpv4Addresses(), ns3::PointToPointDumbbellHelper::BoundingBox(), first::clientApps, ns3::Simulator::Destroy(), ns3::AnimationInterface::DOUBLE_COUNTER, ns3::PointToPointDumbbellHelper::GetLeftIpv4Address(), ns3::PointToPointDumbbellHelper::GetRight(), ns3::OnOffHelper::Install(), ns3::PointToPointDumbbellHelper::InstallStack(), modify(), nodeCounterIdDouble1, nodeCounterIdDouble2, nodeCounterIdUint32, pAnim, ns3::CommandLine::Parse(), ns3::Ipv4GlobalRoutingHelper::PopulateRoutingTables(), resourceId1, resourceId2, ns3::PointToPointDumbbellHelper::RightCount(), ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::OnOffHelper::SetAttribute(), ns3::AnimationInterface::SetBackgroundImage(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::Config::SetDefault(), ns3::PointToPointHelper::SetDeviceAttribute(), first::stack, ns3::ApplicationContainer::Start(), ns3::ApplicationContainer::Stop(), and ns3::AnimationInterface::UINT32_COUNTER.
void modify | ( | ) |
Definition at line 51 of file resources_demo.cc.
References rgb::b, colors, rgb::g, ns3::Time::GetSeconds(), ns3::UniformRandomVariable::GetValue(), nodeCounterIdDouble1, nodeCounterIdDouble2, nodeCounterIdUint32, ns3::Simulator::Now(), pAnim, rgb::r, resourceId1, resourceId2, ns3::Simulator::Schedule(), ns3::AnimationInterface::ShowNode(), ns3::AnimationInterface::UpdateLinkDescription(), ns3::AnimationInterface::UpdateNodeColor(), ns3::AnimationInterface::UpdateNodeCounter(), ns3::AnimationInterface::UpdateNodeDescription(), ns3::AnimationInterface::UpdateNodeImage(), and ns3::AnimationInterface::UpdateNodeSize().
Referenced by main().
struct rgb colors[] |
Definition at line 39 of file resources_demo.cc.
Referenced by modify().
uint32_t nodeCounterIdDouble1 |
Definition at line 48 of file resources_demo.cc.
uint32_t nodeCounterIdDouble2 |
Definition at line 49 of file resources_demo.cc.
uint32_t nodeCounterIdUint32 |
Definition at line 47 of file resources_demo.cc.
AnimationInterface* pAnim = 0 |
Definition at line 31 of file resources_demo.cc.
uint32_t resourceId1 |
Definition at line 45 of file resources_demo.cc.
uint32_t resourceId2 |
Definition at line 46 of file resources_demo.cc.