|
From: Nick C. <vze...@ve...> - 2001-12-14 15:34:26
|
Hi, I've made some more changes to the life model (there in CVS so you can get them if you want). I'm posting this because the additions support an "infinite" space. Its not exactly infinite but rather a 46339 x 46339 grid (21447302921 cells). This is built on a sparse matrix so the idea is that agents have lots of room to roam, but that the number of agents is extremely small vs. the number of cells. The display for this space is a view into a particular sub-grid of the larger grid, a kind of sliding window into the larger space. You can move this window with arrow keys, although you need to make sure that the display frame (that is the actual display window on your desktop) is selected. I think the display threading is synchronized correctly so that you can slide the window will the simulation is running. At least this works on Linux. The "infinite" space and display are not generalized beyond the the life model and their implementations are in the life package. So, I bring this up not just to bother y'all, but to point out that those of you working on spaces may want to look at this code as an example of an "infinite" space / display. Nick -- Nick Collier Social Science Research Computing University of Chicago http://repast.sourceforge.net |