<< NL_I_RouteManagerUpdateC NL_I: Internet NL_I_TCPInterNetworks >>

NARVAL >> NL_I: Internet > NL_I_ShowTrafficChange

NL_I_ShowTrafficChange

Display an incremental graph (animation for data traffic).

Calling Sequence

[F] = NL_I_ShowTrafficChange(G,F)

Arguments

G :

Network graph.

F :

Handle of the graph window.

Description

NL_I_ShowTrafficChange updates the visualization of the graph G in the window defined by its handle F. Topology must be the same, e.g. position of nodes and edges stay at the same place.

Examples

[path]=NL_F_NLPath();//path to NARVAL module
path=path+'/demos/';//folder path
load(path+'RoutingTables_topo_100.dat','pt','rt1','rt2','rt3','rt4','rt5');//loading of the network routing tables
load(path+'topo_100.graph','g');//loading of the network graph
i1=1;//window index
i2=2;//window index
f1=NL_G_ShowGraph(g,i1);//graph visualization: original graph
f2=NL_G_ShowGraph(g,i2);//graph visualization
bo=20;//maximal node border
bum=bo;//maximal metric level
nf=length(g.node_x);//network size
gl=length(g.head);//quantity of network links
bu=int((bo+1)*rand(1,nf));//generation of a random buffer state
pl=int((gl+1)*rand());
lfo=int((gl)*rand(pl,1))+1;//generation of packets along lfo links
[go]=NL_I_NetworkState(g,gl,lfo,bu,bo,bum);//modification of the network
[f2]=NL_I_ShowTrafficChange(go,f2);//application of NL_I_ShowTrafficChange

Report an issue
<< NL_I_RouteManagerUpdateC NL_I: Internet NL_I_TCPInterNetworks >>