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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -