There were some typos in your code, I assume from copy/pasting and updating it for your StackOverflow question. While of goal and ycor != of goal][įd 1 / ((ROM-N + of goal) / 2) moves forward a fraction of the distance between patch-here and North neighbor until it has reached the center coordinates of North neighbor If of parent > of goal[ If my patch's North-facing I-b > North heat-sink of North neighborįace goal make sure it is facing towards North neighbor Let goal N-neighbor here to store N-neighbor Set N-neighbor of self]Īsk turtles[ I use two ask turtles to make sure N-neighbor is created at the beginning of the procedure If xcor = of patch-here and ycor = of patch-here[ To spread-north duplicate and modify the same procedure for south, east, west. Set ROM-S 6 here there would be ROS-N ROS-S ROS-E. Here is a code example of just specifying the North-neighbor (I plan on having separate procedures for North-neighbor, South-neighbor, etc. After it reaches the center of its North neighbor, I want the North neighbor variable to reset so that the new North neighbor is the North neighbor of the old North neighbor. So I want those 8 turtles to move to their specific patch at the rate of their neighbor patch. Each patch variable has 8 rates of movement: rate to move north, rate to move south, and so on. From then I want to have each turtle created to move to a specific patch. Basically I want to specify the neighbor patches as North-neighbor, South-neighbor, East neighbor, West neighbor, NW neighbor, and so on. Ultimately I want the turtle, given a certain condition, to hatch 8 potential other turtles each to travel specifically to one of their neighbors based on their direction. I am trying to create a rate of movement model for a turtle to an adjacent patch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |