Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X, Y positions and their mappings to the devices #63

Open
sophiej-s opened this issue Aug 12, 2021 · 1 comment
Open

X, Y positions and their mappings to the devices #63

sophiej-s opened this issue Aug 12, 2021 · 1 comment

Comments

@sophiej-s
Copy link

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.

@WycliffDembe
Copy link

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 hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants