IFC Engagement

No preview image

1 collaborator

Default-person Christian Dayal (Author)

Tags

(This model has yet to be categorized with any tags)
Model group MAM-2016 | Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.0-M5 • Viewed 375 times • Downloaded 57 times • Run 0 times
Download the 'IFC Engagement' modelDownload this modelEmbed this model

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

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model


turtles-own [
hostile? ;; hostile personality variable
empathy? ;; empathy variable
education? ;; education variable
alcohol? ;; weight of alcohol as a causal for sexual assault.
sex
year
year-weight         ;; 1,2,3,4 correlating with the years of undergraduate

]

to setup
  clear-all

  set-default-shape turtles "person" ;; turtle shape is defined

  create-turtles men  [ ;; slider variable men that adjusts how many men turtles are made
    set sex 0
    setxy random-xcor random-ycor
    set size 1
    ]

  create-turtles women  [ ;; slider variable women that adjusts how many women are made
    set sex 1
    setxy random-xcor random-ycor
    set size 1
    ]

  ask turtles [
    ifelse sex = 0
        [set year one-of [1 2 3 4]]
        [set year one-of [5 6 7 8]]

      ]
  color-year
 ; vulnerability
reset-ticks
end 

to go ;; go function for interaction
  ask turtles [
    move
  hostileinteraction]
  tick
end 

to color-year ;; colors the turtles based on their years
  ask turtles[
     if sex = 0 [
       if year = 1 [set color 108]
       if year = 2 [set color 107]
       if year = 3 [set color 106]
       if year = 4 [set color 105]]
     if sex = 1 [
       if year = 5 [set color 138]
       if year = 6 [set color 137]
       if year = 7 [set color 136]
       if year = 8 [set color 135]]]
end 


;to vulnerability ;; playing with weight variables here for status in undergrad and possibility of being / perpotrating sexual assault.
 ; ask turtles[
  ;    if sex = 0 [
   ;    if year = 1 [set year-weight .8]
    ;   if year = 2 [set year-weight .6]
     ;  if year = 3 [set year-weight .4]
      ; if year = 4 [set year-weight .2]]
     ;if sex = 1 [
      ; if year = 5 [set year-weight .8]
       ;if year = 6 [set year-weight .6]
       ;if year = 7 [set year-weight .4]
       ;if year = 8 [set year-weight .2]]]
;end

to hostileinteraction ;; probability that sexual assault is ar result in male hosility.
  if sex = 0 [
    let target one-of turtles in-radius 3
    ask target [
      if (sex = 1 and random-float 10 < hostility * .05)
      [set color red]]]
end 

;to empathyinteraction
 ; if sex = 0
  ;let target one-of turtles in-radius 3
  ;ask target [
   ; if (

to move ;; moves a turtle
    rt random 50
    lt random 50
    fd 1
end 

;to hostile?
 ; ;; check to make sure there is grass here
  ;if ( grass-amount >= energy-gain-from-grass ) [
   ; ;; increment the sheep's energy
    ;set energy energy + energy-gain-from-grass
    ;;;; decrement the grass
    ;set grass-amount grass-amount - energy-gain-from-grass
  ;  recolor-grass
  ;]
;end

;to update-hostility  ;; turtle procedure
 ; let total count turtles-here
  ;;let same count turtles-here with [color = [color] of myself]
  ;;let opposite (total - same)
  ;; you are happy if the proportion of people of the opposite sex
  ;; does not exceed your tolerance
  ;set hostile? (opposite / total) <= (hostility / 100)
;end




;to empathy?
 ; ;; check to make sure there is grass here
  ;if ( grass-amount >= energy-gain-from-grass ) [
   ; ;; increment the sheep's energy
    ;set energy energy + energy-gain-from-grass
    ;;;; decrement the grass
    ;set grass-amount grass-amount - energy-gain-from-grass
  ;  recolor-grass
  ;]
;end


;to update-empathy  ;; turtle procedure
 ; let total count turtles-here
  ;;let same count turtles-here with [color = [color] of myself]
  ;;let opposite (total - same)
  ;; you are happy if the proportion of people of the opposite sex
  ;; does not exceed your tolerance
  ;set hostile? (opposite / total) <= (hostility / 100)
;end

;to education?
 ; ;; check to make sure there is grass here
  ;if ( grass-amount >= energy-gain-from-grass ) [
   ; ;; increment the sheep's energy
    ;set energy energy + energy-gain-from-grass
    ;;;; decrement the grass
    ;set grass-amount grass-amount - energy-gain-from-grass
  ;  recolor-grass
  ;]
;end

;to update-education?  ;; turtle procedure
 ; let total count turtles-here
  ;;let same count turtles-here with [color = [color] of myself]
  ;;let opposite (total - same)
  ;; you are happy if the proportion of people of the opposite sex
  ;; does not exceed your tolerance
  ;set hostile? (opposite / total) <= (hostility / 100)
;end

;to assault  ;; turtle procedure
;  if hostile? and infected? and not empathy?
 ;   [ if random-float 10 > condom-use or
  ;       random-float 10 > ([condom-use] of partner)
   ;     [ if random-float 100 < infection-chance
    ;        [ ask partner [ set infected? true ] ] ] ]
;end

There are 2 versions of this model.

Uploaded by When Description Download
Christian Dayal over 9 years ago updated driving question and subsequent model Download this version
Christian Dayal over 9 years ago Initial upload Download this version

Attached files

File Type Description Last updated
DayalChris_May16.docx word Final Progress Report 2 over 9 years ago, by Christian Dayal Download
DayalChris_May9.docx word Final Progress Report 1 over 9 years ago, by Christian Dayal Download
May24.ChrisDayal.docx word Updated Progress Report: Sexual Assault in Greek Life over 9 years ago, by Christian Dayal Download

This model does not have any ancestors.

This model does not have any descendants.