<< MobilityNeighborhoodN Network Topology Generator MobilityNodeRWPoint >>

Network Topology Generator >> Network Topology Generator > MobilityNodeRWP

MobilityNodeRWP

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

Calling Sequence

[nx,ny,dx,dy,d,v,tn]=MobilityNodeRWP(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

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

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

Examples

nx=0;
ny=0;
dx=100;
dy=200;
[d]=MobilityDistanceNPoi(nx,ny,dx,dy);
tn=0;//a node is allowed to move when this counter rates 0
tnmax=100;
v=20;
vm=50;
L=1000;//network square area side
[nx ny dx dy d v tn]//original values
[nx,ny,dx,dy,d,v,tn]=MobilityNodeRWP(nx,ny,dx,dy,d,v,tn,tnmax,vm,L);// application of MobilityNodeRWP
[nx ny dx dy d v tn]//new values

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact


<< MobilityNeighborhoodN Network Topology Generator MobilityNodeRWPoint >>