Problem Solving with Data Structures using Java: A Multimedia Approach Chapter 14: Using an Existing Simulation Package.

Slides:



Advertisements
Similar presentations
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. A PowerPoint Presentation Package to Accompany Applied Statistics.
Advertisements

Objects and Classes David Walker CS 320. Advanced Languages advanced programming features –ML data types, exceptions, modules, objects, concurrency,...
What are the S, T, and E in STEM? How are they related?
Problem Solving with Data Structures using Java: A Multimedia Approach Chapter 14: Using an Existing Simulation Package Download greenfoot and install.
Fundamentals of Python: From First Programs Through Data Structures
Georgia Institute of Technology Workshop for CS-AP Teachers Chapter 3 Advanced Object-Oriented Concepts.
Chapter 3 Simulation Software
Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral.
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
CS350/550 Software Engineering Lecture 1. Class Work The main part of the class is a practical software engineering project, in teams of 3-5 people There.
Simulation Waiting Line. 2 Introduction Definition (informal) A model is a simplified description of an entity (an object, a system of objects) such that.
Chapter 1 Cells Chapter Review.
An Environmental Multiagent Architecture for Health Management Francesco Amigoni Nicola Gatti.
Cmpt-225 Simulation. Application: Simulation Simulation  A technique for modeling the behavior of both natural and human-made systems  Goal Generate.
Chapter 12: Simulation and Modeling Invitation to Computer Science, Java Version, Third Edition.
Monté Carlo Simulation MGS 3100 – Chapter 9. Simulation Defined A computer-based model used to run experiments on a real system.  Typically done on a.
Problem Solving with Data Structures using Java: A Multimedia Approach Chapter 1: Objects for Modeling a World.
Slide - 1 Dr Terry Hinton 6/9/05UniS - Based on Slides by Micro Analysis & Design An example of a Simulation Simulation of a bank: Three tasks or processes:
Modeling System Requirements:Events and Things
Chapter 12: Simulation and Modeling
1 Chapter No 3 ICT IN Science,Maths,Modeling, Simulation.
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
Chapter 10 Artificial Intelligence. © 2005 Pearson Addison-Wesley. All rights reserved 10-2 Chapter 10: Artificial Intelligence 10.1 Intelligence and.
ANALYSIS REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
SWE 316: Software Design and Architecture – Dr. Khalid Aljasser Objectives Lecture 11 : Frameworks SWE 316: Software Design and Architecture  To understand.
Problem Solving with Data Structures using Java: A Multimedia Approach Chapter 14: Using an Existing Simulation Package.
Entities and Objects The major components in a model are entities, entity types are implemented as Java classes The active entities have a life of their.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
How much complexity is too much? “you should try to make things as simple as possible, but not too simple” A. Einstein “All modeling is a gross simplification.
Chapter 1 Data Structures and Algorithms. Primary Goals Present commonly used data structures Present commonly used data structures Introduce the idea.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 3 Use Cases.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5.
USE CASES.
Unified Modeling Language. Object Oriented Methods ► What are object-oriented (OO) methods?  OO methods provide a set of techniques for analyzing, decomposing,
Discrete Event (time) Simulation. What is a simulation? “Simulation is the process of designing a model of a real system and conducting experiments with.
Chapter 2 Fundamental Simulation Concepts
 Definitions › System, Model, Simulation  Computer Simulation › why? how?  Example Applications.
Object Oriented Modeling David Li CTO, DigitalSesame.
 Accessible informal format.  Graphical notation is trivial. But writing good use cases is a skillful process.
Chapter 1 Overview of Databases and Transactions.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Lesson 8: The OOP concepts of Polymorphism and Interfaces.
COMP155 Computer Simulation September 10, Discrete Event Simulation  discrete event simulation: state variable change only at a discrete set of.
Slides prepared by Rose Williams, Binghamton University Chapter 20 Java Never Ends.
Stacks and Queues CMSC 201. Stacks and Queues Sometimes, when we use a data-structure in a very specific way, we have a special name for it. This is to.
ISMT221 Information Systems Analysis and Design Use case diagram Lab 4 Tony Tam.
Chapter 1 What is Simulation?. Fall 2001 IMSE643 Industrial Simulation What’s Simulation? Simulation – A broad collection of methods and applications.
Chapter 5 – System Modeling Lecture 1 1Chapter 5 System modeling.
Chapter 12: Simulation and Modeling
OPERATING SYSTEMS CS 3502 Fall 2017
Prepared by Lloyd R. Jaisingh
POAD Book: Chapter 8 POAD: Analysis Phase
2. Specification and Modeling
Lecture 28 Concurrent, Responsive GUIs
Introduction to Extend
CSCI1600: Embedded and Real Time Software
Systems Analysis and Design With UML 2
Problem Solving with Data Structures using Java: A Multimedia Approach
Introduction to Computer Science for Majors II
CSCI1600: Embedded and Real Time Software
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Spreadsheets, Modelling & Databases
Workshop for Programming And Systems Management Teachers
Tonga Institute of Higher Education IT 141: Information Systems
I have 0 Jelly Beans I need Jelly Beans.
Tonga Institute of Higher Education IT 141: Information Systems
MATH 2311 Section 6.3.
Chapter 4 System Modeling.
Presentation transcript:

Problem Solving with Data Structures using Java: A Multimedia Approach Chapter 14: Using an Existing Simulation Package

Simulations “A simulation is a representation of a system of objects in a real or fantasy world. The purpose of creating a computer simulation is to provide a framework in which to understand the simulated situation, for example, to understand the behavior of a waiting line, the workload of clerks, or the timeliness of service to customers. A computer simulation makes it possible to collect statistics about these situations, and to test out new ideas about their organization.” Adele Goldberg & David Robson, Smalltalk-80: The Language and Its Implementation (Addison-Wesley, 1989)

A simulation is an executed model Setting up a simulation is a process of modeling the world (real or fantasy) to be simulated. That model is realized in terms of objects. We want our model to: Reflect the world. Be easy to extend and change. Some of our modeling techniques: Aggregation Generalization and specialization

Aggregation Some objects are made up of other objects. Cars have engines People have livers and lungs These internal things are objects, too! Livers don’t directly mess with the innards of lungs! We call this aggregation Putting references to some objects inside of other objects.

Generalization and Specialization There are general and specialized forms of real world objects. Cells are biological objects that have membranes and a nucleus and mitochondria and… Blood, lung, and liver cells are all cells but have specialized functions. The superclass-subclass relationship is a way of modeling general forms of objects and specialized forms of objects

Actors or Agents: Those that act in the simulations Actors or Agents do things, take time, and request and use resources. In continuous simulations, actors are told to act(). In discrete event simulations, actors do something, then reschedule themselves in the simulation.

Resources Resources are points of coordination in a simulation. Examples: A cashier, a library book, a parking space on a ferry, a jelly bean. Some resources are fixed and others are produced and consumed. Some resources are renewable and shared. Others are coordinated. Example: For a surgeon to do a surgery, the patient must meet the surgeon at the operating table (the resource)

When an object has to wait… What happens if you (or your proxy object) need a resource and it’s not available? You wait in a queue A list that is first-in-first-out (FIFO)

Foxes and Rabbits An example predator and prey simulation:

Question: In what method is it defined how far away a fox looks for a rabbit?

To-Do Make the fox look two cells away instead of one. What happens?

Make the world more stable! Form groups to set hypotheses and experiment.

Results:

To-Do Make the fox look three cells away instead of one. What happens?

Make the world more stable! Form groups to set hypotheses and experiment.

Results: