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

use table to reference TAZs by arbitrary ID #26

Closed
colinsheppard opened this issue Nov 18, 2013 · 0 comments
Closed

use table to reference TAZs by arbitrary ID #26

colinsheppard opened this issue Nov 18, 2013 · 0 comments
Assignees
Labels

Comments

@colinsheppard
Copy link
Owner

We should create a global "table" which is Netlogo's word for a hashtable/hash/dictionary to allow lookup of TAZ agents by any arbitrary integer that don't need to be ordered or start at 1.

See email I sent to you with subject "Table Benchmark" for an example of how to do this.

During setup-tazs, you'll want to add the tazs to the table as they are assigned their id from the charger input file. You'll need to remove the constraint in this procedure that requires sequential ordering of tazs in the charger file.

Finally, all locations in the code where we refer to a TAZ by number (e.g. "taz #") needs to be changed to use the table instead.

Discussion of dealing with "external" TAZs will be in another issue.

@ghost ghost assigned arharris Nov 18, 2013
arharris added a commit that referenced this issue Dec 12, 2013
…om fewer random draws. TAZs now stored in table, going to merge with external-taz branch. (#26)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants