VANET simulation: connection between 1 vehicle to the close Access Point.
MobilityModeVANETRect(r,rf,rs,n1,n2,n3,n4,nf,L,ts,vm,Tlim,Tmax,dmax)
display radius of moving nodes.
display radius of fixed nodes.
display radius of the moving nodes belonging to the connection under studies.
quantity of moving nodes on the road 1.
quantity of moving nodes on the road 2.
quantity of moving nodes on the road 3.
quantity of moving nodes on the road 4.
quantity of fixed nodes.
network square area side.
maximum time break.
maximum speed.
simulation duration.
maximal waiting time at a POI.
locality radius.
MobilityModeVANETRect simulates a simple Vehicular Network VANET.
The mobility of nodes follows the random Way Point model (available destinations are the vertices of a rectangle). Vehicles are moving on 4 roads (2 roads for each direction). Nodes are randomly placed in each vertex at the beginning of the simulation (4 Access Points). The location of each node is defined in respect with its coordinates (x,y) at the time t. As a matter of course the couple of parameters (x,y) will continuously change according to the node movement that consists of successive displacements between selected waypoints. Thus each node Ni moves from a given waypoint (xi,yi) to a new destination waypoint (xdi,ydi). For that a direction (respectively a velocity) is randomly chosen inside the range [0:2*%pi] (respectively [vmin:vmax]). We assume that displacements are done along straight lines because we consider there a free space where the geodesic between two positions corresponds to the direct segment between them. When Ni reaches its current destination waypoint (xdi,ydi), it stays there during a time period ti randomly selected inside the range [Tmin:Tmax]. After this waiting time, the node restarts its displacement process by selecting a new destination waypoint, a new speed and so on. The node under studies tries to establish a connection towards the close Access Point according to the shortest path.