<< NL_M_NodeRWP NL_M: Mobility NL_M_Simulation1N2AllAP >>

NARVAL >> NL_M: Mobility > NL_M_NodeRWPVanet

NL_M_NodeRWPVanet

Generate the displacement of a node to a Point of Interest for a VANET (rectangle).

Calling Sequence

[Nx,Ny,Dx,Dy,I,D,V,T] = NL_M_NodeRWPVanet(Nx,Ny,Dx,Dy,I,Px,Py,D,V,T,TM,VM,L)

Arguments

:

Node x-coordinate (current position).

:

Node y-coordinate (current position).

:

Node PoI x-coordinate.

:

Node PoI y-coordinate.

I :

PoI index.

:

Next PoI x-coordinate.

:

Next PoI x-coordinate.

D :

Distance metric (current position to PoI).

V :

Node velocity.

T :

Breaktime between two displacements (PoI-old to PoI-new).

:

Maximum value of the breaktime parameter.

:

Maximum value of the velocity parameter.

L :

Network square area side.

Description

NL_M_NodeRWPVanet generates the displacement of the node currently located in to the Point of Interest distant of D, at the speed V for the following VANET (rectangle).

When the node reaches the PoI, it stays there for the time duration T. Afterwards it selects a new PoI, a new velocity, and a new breaktime for the new PoI.

Examples

nx=0;//node x-coordinate
ny=0;//node y-coordinate
dx=100;//PoI x-coordinate
dy=100;//PoI y-coordinate
id=1;//road index
Px=100;//next PoI x-coordinate
Py=100;//next PoI y-coordinate
d=100;//distance
v=10;//speed
tn=0;//pause time
tnmax=50;//maximal pause time
vm=100;//maximal speed
L=1000;//network square area side
[nx,ny,dx,dy,id,d,v,tn]=NL_M_NodeRWPVanet(nx,ny,dx,dy,id,Px,Py,d,v,tn,tnmax,vm,L)//application of NL_M_NodeRWPVanet

Report an issue
<< NL_M_NodeRWP NL_M: Mobility NL_M_Simulation1N2AllAP >>