6/11/2023 0 Comments Netlogo links![]() ![]() ![]() The idea of link breeds is based on turtle breeds both turtles and links can. In any case, the key point is that there is no problem in asking all links to update & check their condition: each link will perform its calculations and checks based on its own situation, so there is no problem in handling different links being born and having to die at different points in time. Contribute to NetLogo/models development by creating an account on GitHub. If we want to be precise, the first approach will be a bit lighter because links will not have to set the value of time-to-die at every tick (while, in the second approach, links set the value of time-apart at every tick), but I guess this advantage might be so small that you should probably just prefer the one that best fits the overall logic of your model. Note: This command is equivalent to setting the link variable hidden to false. If you specify a breed instead of links, only links of that breed have the listed variables. Then you will need to tell each turtle to get its fertility rate: ask turtles set fertility-rate table:get fertility-table my-age So, your idea was very good you just need to read the user manual for the table extension carefully to see exactly how to do it. One way mimics the logic that you expressed in your question: links-own [ It defines the variables belonging to each link. ![]()
0 Comments
Leave a Reply. |