swarm-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [swarm-hackers] Still learning the framework...


From: Scott Christley
Subject: Re: [swarm-hackers] Still learning the framework...
Date: Thu, 19 Nov 2009 01:35:40 -0800

On Nov 19, 2009, at 12:51 AM, Nima Talebi wrote:

I see - so If I was going to follow your latter model, I would change my "world" (HeatSpace) not inherit from Diffuse2d, but instead manage a hash of grids, each concerned with one property?
What class is your grid controller derived from?  Do you then just  
use an NSDictionary to manage them?  And am I correct the this class  
then provides a service like so...
Yes. NSObject. Yes.


- cellOnGrid:(GridType)gT atPosition(Position)s;
and similar, but the grids have a name so you retrieve a grid by  
asking for it by name
- gridWithName: (NSString *)aName;



...One thing I haven't quite understood is what you mean by spatial  
scale?
Do all your grids managed by the grid manager have the same  
dimension and cardinality? For example, say one grid is a 2D  
120x140, is it then imposed that all grids should also be 2D 120x140?
No, they can have different dimension.  Right now I only support  
integer scale differences, for example one grid as scale=1 might be  
120x140 while another grid at scale=2 would be 240x280.  However I  
assume they cover the same physical area, but I might want to use a  
finer or coarse grid for representation.  Typically the use of a finer  
grid might be a requirement for accuracy.  For example, biological  
cells are much much larger than individual proteins, like on a scale  
10000:1 so using the same grid resolution for both cells and proteins  
would likely be very inaccurate for the proteins.

Spatial scale - you're referring to one grid to be holding values in  
nanometers, and the other is in micrograms for example?
Yeah except micrograms isn't a unit of length, it is a unit of mass,  
but the idea is right.
Scott





reply via email to

[Prev in Thread] Current Thread [Next in Thread]