GridWorld Case Study Part 2 Bug Variations A Summary by Jim Mims.

Slides:



Advertisements
Similar presentations
GridWorld Case Study The Classes A Summary by Jim Mims.
Advertisements

GridWorld Case Study Part 1 Experiments to Observe Attributes and Behavior of Actors A Summary by Jim Mims.
GridWorld Case Study Part 3 GridWorld Classes and Interfaces A Summary by Jim Mims.
GridWorld Case Study Part 4 Classes that Extend the Critter Interface A Summary by Jim Mims.
GridWorld Case Study Part 5 Grid Data Structures Not Tested on A Exam A Summary by Jim Mims.
GAME:IT Junior Learning Game Maker: The Control Tab.
EXAMPLE 4 Extending a Visual Pattern Hawaiian Leis A Hawaiian lei is a flower wreath given to symbolize friendship. What are the next three flowers in.
© A+ Computer Science - GridWorld © A+ Computer Science -
Part III The General Linear Model. Multiple Explanatory Variables Chapter 12 Multiple Regression.
Copyright © 2014 by The University of Kansas Collecting and Analyzing Data.
Critters A Study in Design Patterns. Design Patterns  Not specific algorithms or data structures  A general reusable solution to a common problem.
Inheritance and Polymorphism Dr. M.M. van Baal Verdugo Hills High.
L3-5c-S1 Object Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department,
L16-S1 Object Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer
Pulling out a common superclass Barb Ericson Georgia Tech.
Copyright 2010 by Pearson Education 1 Assignment 11: Critters.
Elec471 Embedded Computer Systems Chapter 4, Probability and Statistics By Prof. Tim Johnson, PE Wentworth Institute of Technology Boston, MA Theory and.
Introduction to Object-oriented Programming CSIS 3701: Advanced Object Oriented Programming.
Timed UML State Machines Ognyana Hristova Tutor: Priv.-Doz. Dr. Thomas Noll June, 2007.
GridWorld Case Study1 Barbara Ericson Georgia Tech Jan 2008.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 27. Review UML dynamic view – State Diagrams.
Session 11 Border Layout, using Panels, Introduction to PinBallGame.
© A+ Computer Science - Row = 0 Column = 0.
Selected Topics in Software Engineering - Distributed Software Development.
GridWorld Case Study Barbara Ericson March 24, 2007.
Use Cases Use Cases are employed to describe the functionality or behavior of a system. Each use case describes a different capability that the system.
CS 4233 Review Feb February Review2 Outline  Previous Business – My.wpi.edu contains all grades to date for course – Review and contact.
Hundreds Chart Unit of Study: Strengthening Critical Area: Understanding Place Value to Add and Subtract Global Concept Guide: 3 of 3.
We are learning to write expressions using variables. (8-1)
Ch- 8. Class Diagrams Class diagrams are the most common diagram found in modeling object- oriented systems. Class diagrams are important not only for.
M1G Introduction to Programming 2 5. Completing the program.
4-1 © Prentice Hall, 2007 Topic 4: Structuring Systems Requirements: Use Case Description and Diagrams Object-Oriented Systems Analysis and Design Joey.
The GridWorld Case Study Program Section 1 - Overview of the Class Hierarchies Section 2 - The Actor Class Section 3 - The Rock and Flower Classes Section.
AP Computer Science A – Healdsburg High School 1 Inheritance - What is inheritance? - “Is-a” vs. “Has-a” relationship - Programming example “CircleBug”
Use Cases and Use Case Diagrams Reporter: 陳雅萍. Outline Use cases, actors Organizing use cases Modeling the behavior of an element Use case diagrams Common.
Slide 0. Inheritance and Polymorphism Mr. Landa South East High.
Objective: Learn to describe the relationships and extend the terms in arithmetic sequence.
Skip Counting Counting by 2’s, 3’s, 5’s, and 10’s Standard 2.1 Numbers, Number Systems and Number Relationships A. Count using whole numbers to 100 by.
GridWorld Case Study The case study is a program that simulates actions and interactions of objects in a two- dimensional grid. During a single step of.
Polymorphism. ArrayList boxbugs; ArrayList critters; ArrayList kingCrabs; ArrayList workerants; boxbugs.get(i).act(); critters.get(i).act(); kingCrabs.get(i).act();
Introduction to UML and Rational Rose UML - Unified Modeling Language Rational Rose 98 - a GUI tool to systematically develop software through the following.
Variables and Inheritance Part 1 Alice. Review: Properties A class defines properties for its own kind of object. When an object is created (instantiated),
© A+ Computer Science - Visit us at Full Curriculum Solutions M/C Review Question Banks.
The PLA Model: On the Combination of Product-Line Analyses 강태준.
© T Madas. How many squares on a 1 by 1 grid? How many squares on a 2 by 2 grid? How many squares on a 3 by 3 grid? How many squares on a 4 by 4 grid?
Section 2.2 The StringLog ADT Specification. 2.2 The StringLog ADT Specification The primary responsibility of the StringLog ADT is to remember all the.
CORRELATION. Correlation  If two variables vary in such a way that movement in one is accompanied by the movement in other, the variables are said to.
GridWorld.
String and Lists Dr. José M. Reyes Álamo.
Advanced Swing Lists.
Agenda About Quiz ChameleonCritter class CrabCritter class homework.
Barbara Ericson Georgia Tech Jan 2008
Jim Fawcett CSE776 – Design Patterns Summer 2003
© A+ Computer Science - GridWorld © A+ Computer Science -
© A+ Computer Science - GridWorld © A+ Computer Science -
Inheritance and Polymorphism
Inheritance and Polymorphism
Adding and Subtracting Decimals
Collecting and Analyzing Data
Polynomial Functions and Their Graphs
Arithmetic Sequence Objective:
© A+ Computer Science - GridWorld The GridWorld case study provides a graphical environment where visual objects inhabit and interact.
© A+ Computer Science - GridWorld © A+ Computer Science -
Counting by 2’s, 3’s, 5’s, and 10’s
GridWorld Case Study.
© A+ Computer Science - GridWorld © A+ Computer Science -
© A+ Computer Science - GridWorld © A+ Computer Science -
Presentation transcript:

GridWorld Case Study Part 2 Bug Variations A Summary by Jim Mims

Contents Introduction Part 1: Observing and Experimenting with GridWorld Part 2: Bug Variations Part 3: GridWorld Classes and Interfaces Part 4: Classes that Extend the Critter Class Part 5: Grid Data Structures

Classes and Interfaces: Relationships

Introduction The case study provides a graphical environment where visual objects inhabit and interact in a two-dimensional grid. Students design and creator actor objects, add them to a grid, and determine whether they behave according to specifications.

Bug Class Methods public boolean canMove() tests whether the bug can move forward into a location that is empty or contains a flower public void move() moves the bug forward, putting a flower into the location it previously occupied public void turn() turns the bug 45 degrees to the right without changing its position

Extending Bug Class – BoxBug Class Moves in a square pattern No new methods need to be added Act method uses the 3 methods listed previously BoxBug class has 2 instance variables, sideLength and steps

Runner Classes A runner class is added to observe the behavior of one or more actors Runner class constructs an ActorWorld object places actors in it shows the world Act method uses the 3 methods listed previously For the bug, this class is BugRunner When you write your own classes that extend bug, you need to create a similar runner class

BoxBug Runner