"Fixed" mobile devices

119 views
Skip to first unread message

Claudio Savaglio

unread,
Apr 27, 2021, 4:07:40 AM4/27/21
to EdgeCloudSim
Hi,  is there the possibility of making  the devices  static? 
For example by defining their <x,y> position as done for the Edge Server?
Does a "NoMobility" models exist  to replace the "NomadicMobilityModel"?  
Many thanks
Claudio

Cagatay Sonmez

unread,
Aug 12, 2021, 4:22:32 AM8/12/21
to EdgeCloudSim
Hi Claudio,

Of course you can use a static mobility model.
You can copy and slightly modify NomadicMobility.java to make a static mobility model.
There are 2 for loops in NomadicMobility.java.
The first loop assigns a random location to mobile devices:

//initialize tree maps and position of mobile devices
for(int i=0; i<numberOfMobileDevices; i++) {
    ...
    //start locating user shortly after the simulation started (e.g. 10 seconds)
    treeMapArray.get(i).put(SimSettings.CLIENT_ACTIVITY_START_TIME, new Location(placeTypeIndex, wlan_id, x_pos, y_pos));
}

The second loop randomly assigns new locations to mobile devices based on time.
If you remove the second loop, your devices will have a random position that will not be changed during the simulation.

Best regards,
Cagatay
27 Nisan 2021 Salı tarihinde saat 11:07:40 UTC+3 itibarıyla csav...@dimes.unical.it şunları yazdı:
Reply all
Reply to author
Forward
0 new messages