A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
colors-link-description.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 colors-link-description.cc:

Go to the source code of this file.

Classes

struct  Rgb
 RGB structure. More...
 

Functions

void modify ()
 

Variables

Rgb colors []
 
AnimationInterfacepAnim = nullptr
 

Function Documentation

◆ modify()

void modify ( )

Definition at line 47 of file colors-link-description.cc.

References Rgb::b, colors, Rgb::g, ns3::Time::GetSeconds(), modify(), ns3::Simulator::Now(), pAnim, Rgb::r, ns3::Simulator::Schedule(), ns3::Seconds(), ns3::AnimationInterface::UpdateLinkDescription(), ns3::AnimationInterface::UpdateNodeColor(), and ns3::AnimationInterface::UpdateNodeDescription().

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 colors-link-description.cc.

Referenced by modify().

◆ pAnim

AnimationInterface* pAnim = nullptr

Definition at line 30 of file colors-link-description.cc.

Referenced by modify().