Mobile device battery

96 views
Skip to first unread message

Sara MAFTAH

unread,
May 4, 2021, 9:28:30 AM5/4/21
to EdgeCloudSim
Hello,

Is there a way to specify the Mobile device lifetime battery ?

Thank you.

Cagatay Sonmez

unread,
Aug 12, 2021, 4:13:42 AM8/12/21
to EdgeCloudSim
Hello,

Unfortunately there is no mobile device battery model by default.
However, you can extend the code to track battery life.
For example, the mobility model manages such treemap to determine mobile device location over time.

private List<TreeMap<Double, Location>> treeMapArray;

For example, this data structure holds the following data if the 3rd mobile device stays at Location1 for 15 seconds, then moves to Location2 and stays there for 20 seconds.

[ 3,  [<15,Location1>, <35,Location2>] ... ]

You can define a mobile device battery model by manipulating the similar data structure.
If you only need the current battery level, you don't have to maintain the battery level over time.
A simpler data structure (2 dimentional list) may meet your needs.

4 Mayıs 2021 Salı tarihinde saat 16:28:30 UTC+3 itibarıyla sara....@gmail.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages