Obtain the cell number of coordinate (xt,yt) by taking coordinate (xcn, ycn) as a reference point
get_MSCN (cellnum)
Obtain the MSCN id corresponding to cell cellnum
get_rsu (MSCNid)
Obtain the RSU id to which MSCNid belongs
mscnMigration
A map < vehicle_id,flag > which represents the vehicle who’s id is vehicle_id will perform or not service migration at the MSCN level while the flag is true or false
rsuMigration
A map < vehicle_id,flag > which represents the vehicle who’s id is vehicle_id will perform or not service migration at the RSU level while the flag is true or false
setMigration
The service migration set {rsuMigration, mscnMigration}
get_strategy (pif, cset)
Obtain the optimal strategy according to Algorithm 1 with variable pif and variable Cset