CS 1025 01 - Week #3 (September 9th-13th)



Monday, September 9th



  1. Read Decentralization and Agents pages from Turtles, Termites, and Traffic Jams to prepare for Wednesday class discussion. Pages 3 through 12 of the textbook.


    1. Assignment for WEDNESDAY: Read/study the 10 pages (page 3-12) from textbook or PDF link above.

    2. Bring to class to turn in 1/2 to 1 page of notes, questions, quotes, confusions, opinions.

    3. Pen/pencil hand-written is just fine. It does not need to be printout and word processed.

    4. Try to think of examples of how the concepts relate to your major or hobbies or current events or whatever. Brainstorm.

  2. The NetLogo remainder operation and turtle WHO numbers: EVEN and ODD turtles, Sliders and Buttons. the ifelse (condition) [EVEN turtles actions] [ODD turtles actions], REMAINDER and WHO numbers.

    EVEN versus ODD turtles.
       
    WHO numbers of turtles are 0, 1, 2, 3, 4, 5, 6, 7, 8, ..., 14, and 15
               for 16 turtles created with 
                                           cro 16.
    
    remainder who 2 is either = 0     EVEN turtle
                    or else
                           is = 1      ODD turtle
    
    ifelse (remainder who 2 = 0)
    [
         what I want the EVEN turtles to do...    remainder was = 0
    ]
    [ 
         what we want the ODD turtles to do...    remainder was = 1
    ]
      
    ;; Here is an example similar but simpler than the one above
    ;;                               with the airplanes and fish...
    
    TO Stagger  
       ca        ;; ca is short for the clear-all, an Observer Command
                 ;; ca clears out EVERYTHING 
                 ;; doing clear-turtles, clear-patches, clear-drawing.   
                 ;; What are PATCHES?  Don't worry!    
       
       cro howManyTurtles  ;; howManyTurtles is the name of the SLIDER
       
       ask turtles
       [
           ifelse (remainder who 2 = 0) 
           [  
              set shape "airplane" 
              fd 12    
              changeColorEven
           ]           
           [  
              set shape "fish"
              fd 10
              changeColorOdd
           ]        
       ]  
    END
    

Wednesday, September 11th


  1. Read Decentralization and Agents pages from Turtles, Termites, and Traffic Jams to prepare for week #3 class discussion. Pages 3 through 12 of the textbook.


    DUE TODAY:
         Assignment: BRING to class 1/2 to 1 page of notes, questions, quotes, confusions, opinions on the Turtles, Termites, and Traffic Jams reading.
         Pen/pencil hand-written is just fine. It does NOT need to be a printout of a word processed document.
         Pages 3-12 of Turtles, Termites, and Traffic Jams...

  2. Shodor Data Flyer tool used to Plot Data.

  3. Monty Hall group discussion. What is the best strategy based on the experimental results? Better to stick with your first choice or change to the other door?

  4. Adobe Flash Bouncing Ball for comparing Ease In and Ease Out and no easing...

  5. Microsoft Excel slope for Classic Tween without Ease In and with Ease In.

    Without Easing and With Ease In data for the Data Flyer tool.
    Animation with No Ease In... Animated to Ease In at 100% Flash custom setting...


Friday, September 13th


  1. Today's example (and more for Monday) EVEN and ODD turtles, Sliders and Buttons. the ifelse (condition) [EVEN turtles actions] [ODD turtles actions], REMAINDER and WHO numbers.

  2. RETURN to Day #1 example: Review of the NetLogo example of airplanes flying and fish swimming. How is NetLogo able to do CIRCLES??? Be sure to try out the SLIDERS and all 3 BUTTONS. From SQUARES to PENTAGONS to OCTAGONS to CIRCLES.

    Even and Odd turtles become Fish and Airplanes. Also, see all of the default shapes for turtles. FlyFishing.html NetLogo example to play with.

  3. Another forest FIRE model available from SHODOR.

  4. Shodor Data Flyer tool used to Plot Data. We will plot some Forest Fire simulation output again during the first week of class. This tool is much simpler to use than SPSS and Excel!