Deliberate timing delay in netlogo? -
dear netlogo community,
i want put timer constraint in simulation agents make decision. know can implement using ticks in simulation agents should make decision in tick , avoid deadlock want introduce time constraint agent make decision. if agent not make decision in specified time control of resource should go other agent. appreciated. thanks
if don't have constraint related tick limit make procedure counts number of ticks since main turtle procedure started, like...
edited code:
procedure turtle-decision-making set time_passed 0 while time_passed < time_limit decision-taking-part << if decision taken break while loop else set time_passed (ticks_passed + 1) ;; tick might procedure outermost loop, might not. end while end turtle-decision-making
Comments
Post a Comment