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 53 of file resources-counters.cc.

References Rgb::b, colors, 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 40 of file resources-counters.cc.

Referenced by modify().

◆ nodeCounterIdDouble1

uint32_t nodeCounterIdDouble1

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

Referenced by modify().

◆ nodeCounterIdDouble2

uint32_t nodeCounterIdDouble2

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

Referenced by modify().

◆ nodeCounterIdUint32

uint32_t nodeCounterIdUint32

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

Referenced by modify().

◆ pAnim

AnimationInterface* pAnim = nullptr

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

Referenced by modify().

◆ resourceId1

uint32_t resourceId1

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

Referenced by modify().

◆ resourceId2

uint32_t resourceId2

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

Referenced by modify().