<< NARVAL_M_NextDestination NARVAL NARVAL_M_NodeRWPoint >>

NARVAL >> NARVAL > NARVAL_M_NodeRWP

NARVAL_M_NodeRWP

Generate the displacement of a node towards a Point of Interest.

Calling Sequence

[nx,ny,dx,dy,d,v,tn] = NARVAL_M_NodeRWP(nx,ny,dx,dy,d,v,tn,tnmax,vm,L)

Parameters

nx :

node x-coordinate (current position).

ny :

node y-coordinate (current position).

dx :

node PoI x-coordinate.

dy :

node PoI y-coordinate.

d :

distance metric (current position to PoI).

v :

node velocity.

tn :

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

tnmax :

maximum value of the breaktime parameter.

vm :

maximum value of the velocity parameter.

L :

network square area side.

Description

NARVAL_M_NodeRWP generates the displacement of the node currently located in (nx,ny) towards the Point of Interest (dx,dy) distant of d, at the speed equal to v.

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

Examples

nx=0;//initial node x-coordinate
ny=0;//initial node y-coordinate
dx=100;//PoI x-coordinate
dy=200;//PoI y-coordinate
[d]=NARVAL_M_DistanceNPoi(nx,ny,dx,dy);
tn=0;//a node is allowed to move when this counter rates 0
tnmax=100;//maximal value
v=20;//current speed
vm=50;//maximal speed
L=1000;//network square area side
[nx ny dx dy d v tn]//original values
[nx,ny,dx,dy,d,v,tn]=NARVAL_M_NodeRWP(nx,ny,dx,dy,d,v,tn,tnmax,vm,L);// application of NARVAL_M_NodeRWP
[nx ny dx dy d v tn]//new values

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_M_NextDestination NARVAL NARVAL_M_NodeRWPoint >>