<< NL_I_PathNextNode NL_I: Internet NL_I_Reception2Reception >>

NARVAL >> NL_I: Internet > NL_I_RMSelectRoute

NL_I_RMSelectRoute

Select a path in respect with a route manager.

Calling Sequence

[I] = NL_I_RMSelectRoute(R,K)

Arguments

R :

Route manager.

K :

Path index.

I :

Route index.

Description

NL_I_RMSelectRoute selects the path I in respect with the route manager R. The path index rates where and are the path extremal nodes and n is the network size.

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
n=100;//network size
bs=15;//constant buffer size
[nd,nf]=NL_F_RandIntNiNj(n);//generation of connection extreme nodes
L=1000;//network square area side
[probroute]=NL_I_RouteManagerInit(rt1,rt2,rt3,rt4,rt5,pt,n,L);//initialization of the route manager
k=(nd-1)*n+nf;//line index for the connection between the nodes nd and nf
[r]=NL_I_RMSelectRoute(probroute,k)//application of NL_I_RMSelectRoute
probroute(k,:)

Report an issue
<< NL_I_PathNextNode NL_I: Internet NL_I_Reception2Reception >>