Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

extract targets as a set from whole area

New Message Reply Date view Thread view Subject view Author view

Subject: extract targets as a set from whole area
From: Miao Wang (Miao.Wang1@newcastle.ac.uk)
Date: Mon Jun 05 2006 - 14:35:42 CEST

Hi Everyone:
 
 I have a new problem of setting tartgets as a set.
 
At first I set target , which is a instance variable of agents in my model( the agent will walk towards the target), like this:
 
touristNeighbours := (self perception:10) select: [:cell | cell theme = #Attraction].
target := Cormas selectRandomlyFrom:touristNeighbours.
 
 in this way the Target is related with the agent's location.
 
Since the Targets set of all agents is the same (diferent agnets visit the targets in different order). What I am trying to do is to extract targets set as a collection from the whole study area(all the cells with the attribute of #Attraction),the targets set will not related with the agent's location. I don't know whether it is possible to set the Targets set under Agent protocol or should it be set under the spatialEntitySet protocol? Should it be a Composit Spatial Entity->Fragmented spatial Entity?
 
Great thanks!
 
Mira
 
 
Miao Wang at Geomatics
School of Civil Engineering and Geosciences
G.19, Cassie Building,
University of Newcastle Upon Tyne, NE1 7RU
England
Email: miao.wang1@ncl.ac.uk

New Message Reply Date view Thread view Subject view Author view
 

Back to home