Libraries‎ > ‎Somie‎ > ‎

generic question

BehaviourComposer: ignore everything before this.

Begin micro-behaviour:

Begin description:

End description

generic question

Begin NetLogo code:

substitute-text-area-for condition if time:get "dayofmonth" the-date-time = 0
substitute-text-area-for question-id add question-id 
substitute-text-area-for text-line-1 add question text
substitute-text-area-for text-line-2 more question text?
substitute-text-area-for text-line-3 even more question text?
substitute-text-area-for text-line-4 explain how to use controls to answer 
substitute-text-area-for text-line-5 e.g. the mouse, chooser, slider, input box and buttons
substitute-text-area-for text-line-6 ------
substitute-text-area-for text-line-7 ------
substitute-text-area-for text-line-8 ------
substitute-text-area-for 1-c-items "maize" "manioc" "cafe" "palm"
substitute-text-area-for 2-c-items 0.25 0.5 0.75 1
substitute-text-area-for 3-c-items "Jan" "Feb" "Mar" "Apr" "Mai" "Jun" "Jul" "Aug"
;; Condition that will trigger this question to be asked
  condition [
;; Text that asks question and/or explains how to answer
  set the-question  question-id 
  output-print     "text-line-1" 
  output-print     "text-line-2" 
  output-print     "text-line-3"
  output-print     "text-line-4"
  output-print     "text-line-5" 
  output-print     "text-line-6" 
  output-print     "text-line-7" 
  output-print     "text-line-8" 
;; Initialise the choosers for the answers to this question
  goo:set-chooser-items "the-chooser-1" [ 1-c-items ] 
  goo:set-chooser-items "the-chooser-2" [ 2-c-items ] 
  goo:set-chooser-items "the-chooser-3" [ 3-c-items ] 
; stop simulation until answer for this question is completed
  set the-bypass-go? true 
]

End NetLogo code

BehaviourComposer: ignore everything after this.

Comments