|
From: Mark R. D. <mdi...@la...> - 2003-10-10 13:45:03
|
An eventual goal of our current refactoring project is to get the GUI
related rendering aspects of the project separated from the model. So I
think eventually, the use of implementing the Drawable interface in
Agents will be replaced with some sort of rendering api thats separate
of the agents and the model.
This would be a point at which we could consider such a problem of
drawing an agents position visually to be separate from its "position"
in a models space. In this sense, in the future one would "configure"
which methods/properties represent the positional information in an
object/agent in the renderer itself.
My thoughts are that different renderers would be available to do
discrete vs continuous space visualization, but the actual <type> of the
property determining position could be any Object or primitive that
could be "transformed" into double.
-Mark
Vos, Jerry R. wrote:
> Nevermind, I just noticed one is using double's one is using ints.
> Shouldn't there be some way of combining this anyway?
>
> -----Original Message-----
> From: Vos, Jerry R.
> Sent: Thursday, October 09, 2003 4:24 PM
> To: 'rep...@li...'
> Subject: NonGridDrawable
>
> Shouldn't uchicago.src.sim.gui.NonGridDrawable extend
> uchicago.src.sim.gui.Drawable ? It restates all the functions in
> Drawable, but since it isn't just extending it you can't cast
> NonGridDrawables to Drawable.
>
> public interface NonGridDrawable {
> // NOTE
> public void draw(SimGraphics g);
> public double getX();
> public double getY();
> // END NOTE
> public int getWidth();
> public int getHeight();
> public boolean contains(Point p);
> }
>
> public interface Drawable {
> public void draw(SimGraphics g);
> public int getX();
> public int getY();
> }
>
> Jerry
> ANL
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> Repast-developer mailing list
> Rep...@li...
> https://lists.sourceforge.net/lists/listinfo/repast-developer
--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu
|