distance between agents [message #779443] |
Sun, 15 January 2012 13:57  |
Eclipse User |
|
|
|
Hi,
I was wondering what exactly does the function org.ascape.model.Scape.calculateDistance(LocatedAgent origin,LocatedAgent target)
calculates.Does it calculate the distance according to the option that has been chosen for the Neighborhood of the Space (Moore,Euclidian,Von_Neumann)? As I noticed by observing the values that the function returns, I think that is calculates only the difference of the x coordinate.For example, for the distance between agent1, whose hostCell is [8,14], and agent2, whose hostCell is [13,33], it returns 5 (13-8).
Agent1 Cell [8, 14]
Agent2 Cell [13, 33]
Distance 5.0
In this example, if I have understood well the meaning of the Moore distance, I think that the Moore distance is 19. Is there any other function that returns this distance?
|
|
|
|
|
Re: distance between agents [message #780366 is a reply to message #780235] |
Tue, 17 January 2012 12:09  |
Eclipse User |
|
|
|
I wonder if this is a bug that might have been fixed on the Ascape side but not yet brought over to the Eclipse version. You might check the Ascape forum for related bugs.
|
|
|
Powered by
FUDForum. Page generated in 0.24214 seconds