A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
resources-counters.cc File Reference
#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/netanim-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-layout-module.h"
#include "ns3/point-to-point-module.h"
#include <iostream>
+ Include dependency graph for resources-counters.cc:

Go to the source code of this file.

Classes

struct  Rgb
 RGB structure. More...
 

Functions

void modify ()
 

Variables

Rgb colors []
 
uint32_t nodeCounterIdDouble1
 
uint32_t nodeCounterIdDouble2
 
uint32_t nodeCounterIdUint32
 
AnimationInterfacepAnim = nullptr
 
uint32_t resourceId1
 
uint32_t resourceId2
 

Function Documentation

◆ modify()

void modify ( )

Definition at line 42 of file resources-counters.cc.

References Rgb::b, colors, ns3::CreateObject(), Rgb::g, ns3::Time::GetSeconds(), modify(), nodeCounterIdDouble1, nodeCounterIdDouble2, nodeCounterIdUint32, ns3::Simulator::Now(), pAnim, Rgb::r, resourceId1, resourceId2, ns3::Simulator::Schedule(), ns3::Seconds(), ns3::AnimationInterface::UpdateLinkDescription(), ns3::AnimationInterface::UpdateNodeColor(), ns3::AnimationInterface::UpdateNodeCounter(), ns3::AnimationInterface::UpdateNodeDescription(), ns3::AnimationInterface::UpdateNodeImage(), and ns3::AnimationInterface::UpdateNodeSize().

Referenced by modify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ colors

Rgb colors[]
Initial value:
= {
{255, 0, 0},
{0, 255, 0},
{0, 0, 255},
}

Definition at line 29 of file resources-counters.cc.

Referenced by modify().

◆ nodeCounterIdDouble1

uint32_t nodeCounterIdDouble1

Definition at line 38 of file resources-counters.cc.

Referenced by modify().

◆ nodeCounterIdDouble2

uint32_t nodeCounterIdDouble2

Definition at line 39 of file resources-counters.cc.

Referenced by modify().

◆ nodeCounterIdUint32

uint32_t nodeCounterIdUint32

Definition at line 37 of file resources-counters.cc.

Referenced by modify().

◆ pAnim

AnimationInterface* pAnim = nullptr

Definition at line 19 of file resources-counters.cc.

Referenced by modify().

◆ resourceId1

uint32_t resourceId1

Definition at line 35 of file resources-counters.cc.

Referenced by modify().

◆ resourceId2

uint32_t resourceId2

Definition at line 36 of file resources-counters.cc.

Referenced by modify().