Epidemia - SIR
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
WHAT IS IT?
(a general understanding of what the model is trying to show or explain)
HOW IT WORKS
(what rules the agents use to create the overall behavior of the model)
HOW TO USE IT
(how to use the model, including a description of each of the items in the Interface tab)
THINGS TO NOTICE
(suggested things for the user to notice while running the model)
THINGS TO TRY
(suggested things for the user to try to do (move sliders, switches, etc.) with the model)
EXTENDING THE MODEL
(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)
NETLOGO FEATURES
(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)
RELATED MODELS
(models in the NetLogo Models Library and elsewhere which are of related interest)
CREDITS AND REFERENCES
(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)
Comments and Questions
turtles-own [ doente? ;; se isto for verdade, então o agente é infeccioso imune? ;; se isto for verdade, então o agente é imune ou não pode ser infectado tempo-doente ;; há quanto tempo o agente é infeccioso ] globals [ %infectados ;; a porcentagem da população que está infectada ] to setup clear-all ;; limpa a execução anterior ask patches [ set pcolor white ] ;; mundo branco, facilita a impressão crt pessoas [ set shape "person" ;; muda a forma para pessoas setxy random-xcor random-ycor ;; define as coordenadas x e y aleatoriamente set tempo-doente 0 set imune? false set size 1.5 ;;aumenta o tamanho ifelse (who < 10) [ ficar-doente ] [ ficar-saudável ] ] reset-ticks end to ficar-doente set doente? true set color orange set tempo-doente 0 end to ficar-saudável set doente? false set imune? false set tempo-doente 0 set color blue end to tornar-imune set doente? false set tempo-doente 0 set imune? true set color green end to go mover infectar imunizar wait 0.1 tick end to mover ask turtles [ rt random 100 lt random 100 fd 1 ] end to infectar ask turtles with [doente?] [ask other turtles-here with [not imune?] [if (random 100) < infecciosidade [ficar-doente]]] end to imunizar ask turtles with [doente?] [ifelse (tempo-doente > 15) [tornar-imune] [set tempo-doente (tempo-doente + 1)]] end
There is only one version of this model, created almost 5 years ago by Reges Sabino.
Attached files
No files
This model does not have any ancestors.
This model does not have any descendants.