You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to figure out how to change the nomadic code (and the data structures in it) such that it would accept x,y predetermined by me (I will load them from a CSV file for example).
I see there is a TreeMap structure but it is not clear to me how (what parameter) identifies a specific device.
For example, I want to update device to N+5 units in x_position on a next iteration and I am trying to figure out how exactly the mapping between the specific devices and their locations work.
I would appreciate any assistance; thank you.
The text was updated successfully, but these errors were encountered:
Since you have a deterministic mobility model, you would go on and extend MobilityModel, then dictate the dynamics of the device locations without having to derive it from NomadicMobility.
The most straight forward way would be to read your file and populate your favorite data structure from within the "initialize" method then in the "getLocation" method, traverse your data structure to obtain the location for the device.
I am trying to figure out how to change the nomadic code (and the data structures in it) such that it would accept x,y predetermined by me (I will load them from a CSV file for example).
I see there is a TreeMap structure but it is not clear to me how (what parameter) identifies a specific device.
For example, I want to update device to N+5 units in x_position on a next iteration and I am trying to figure out how exactly the mapping between the specific devices and their locations work.
I would appreciate any assistance; thank you.
The text was updated successfully, but these errors were encountered: