|
From: Pimin K. K. <spa...@gm...> - 2007-05-30 11:35:48
|
Dear All, I have to types of objects that i want to visualize in RepastJ 3. object A (human agent) implements Drawable, the object B (road segment)implements NonGridDrawable. To visualize objects A, I use a Multi2DGrid/MultiObject2DDisplay combo, To visualize objects B, I have used a VectorSpace/VectorDisplay combo. My problem is 1) getX() for Drawable is in grid coordinates, while getX() for NonGridDrawable is in screen coordinates. What I would like is objects A and B to be displayed on top of each other (each have geo-coordinates that a "in sync"). I have a running temp solution that uses a RasterSpace/Value2DDisplay to display the roads in a cellular fashion, but this gives a lo-res image of the road-segments, and is obviously not what i want. Question 1: Would you recommend using something like the OpenMapDisplay, and reimplementing the agents? Question 2: Would you recommend that I implement a custom space for my agents? Question 3: I HAVE tried using a vector space for both the agents and the roads(both implementing NonGridDrawable), but for some reason my Repast will only displays the roads, and not the agents. Should this approach be possible, or is it just not possible to use two VectorDisplays? Any suggestions would be much appreciated. By the way, running repast simulations on the web with Java Web Start is really cool. I've made a small testcase at http://frostboxsoftware.googlepages.com/antsim -- (note: I DO check this address, despite the name ;-p) Pimin Konstantin Kefaloukos, Computer science department, University of Copenhagen. Anders Henriksens Gade 3, 2. t.h. 2300 Copenhagen, Denmark. |