CRC Cards: Construction Emerson Murphy-Hill Creative Commons Attribution 4.0 License. Material Produced by NCSU Software Engineering Faculty.

Slides:



Advertisements
Similar presentations
1 © Wolfgang Pelz CRC Cards CRC Cards (class-responsibility-collaborator)
Advertisements

CRC Cards (class-responsibility-collaborator)
The Build-up of the Red Sequence at z
Binder Object-Oriented Testing Metrics. Lack of Cohesion in Methods b b In order to calculate the lack of Cohesion in methods, the Software Engineer must.
Driving Theory Session 7 cut and paste answers Motorway Rules.
Our First Real System.
Traffic Light Behavior IF A=1 AND B=0 Car Sensors B A.
Slide 1 Chapter 7 Structural Modeling. Slide 2 Key Ideas A structural or conceptual model describes the structure of the data that supports the business.
Dynamic Traffic Control Yishai Goldstein & Nahum Nir Computer Science & Engineering Hebrew University.
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
Software Engineering 3 rd Bachelor Informatics Ahmed Lamkanfi October 15, 2009.
Adaptive Traffic Light Control For Traffic Network.
Lesson 2.2 Traffic Signals  Today’s Objectives: 1. Explain what to do at a green, yellow, and red light. 2. Describe the action to take when you approach.
11/10/ :53:59 AMweek12-3.ppt1 Intelligent Traffic Controller We want to use a finite state machine to control the traffic lights at an intersection.
Stop Sign This is a traffic sign. This means to stop. It helps us be safe when driving.
OBJECT-ORIENTED ANALYSIS PHASE
Slide 12.1 © The McGraw-Hill Companies, CS 4310: Software Engineering Lecture 7 Systems Analysis Object-Oriented Design.
Requirements Engineering © NC State Software Engineering Faculty L
BTS430 Systems Analysis and Design using UML Domain Model Part 1—Finding Conceptual Classes.
17. GRASP—Designing Objects with Responsibilities III CSE5324 Lecture Quiz 17 due at 5 PM Thursday, 8 October 2015.
CS3320::CH111 OBJECT-ORIENTED ANALYSIS Chapter 11.
1 Analysis Extracting from Use Cases to Create Diagrams.
CSC 395 – Software Engineering Lecture 13: Object-Oriented Analysis –or– Let the Pain Begin (At Least I’m Honest!)
Lecture 14 & 15: Object- Oriented Analysis Anita S. Malik Adapted from Schach (2004) Chapter 12.
CRC CARDS 1 Sys464 Object-oriented analysis and design.
Developed by Reneta Barneva, SUNY Fredonia for CSIT 425 Requirements Modeling.
CSC172 Class Design Pepper. Goals How to design classes How to think in terms of objects StarUML Code Generation.
Clauses. Independent Clause (Sentence) Subject Verb Represents a complete thought Can act alone (independently. I was mad.
Lecture 6: Structural Modeling
Slide 12A.1 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
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.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 2 I Am Not a Control Freak!
Structural Modeling Chapter 7. Key Ideas A structural or conceptual model describes the structure of the data that supports the business processes in.
1 Structural Modeling Chapter 7. 2 Key Ideas A structural or conceptual model describes the structure of the data that supports the business processes.
Driving Laws and DMV Objective: pt 30 pt 40 pt 50pt 10 pt 20 pt 30 pt 40 pt 50 pt 10 pt 20 pt 30 pt 40 pt 50 pt 10 pt 20 pt 30pt 40 pt 50 pt 10.
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.
CSC480 Class Design Pepper. Goals How to design classes StarUML Code Generation.
Drivers Edge: Interactive slides and videos ® Drivers Edge: Interactive slides and videos ® Copyrighted Driver Education School Literature Copyright ©
Use Case Textual Analysis
SWE 4743 Responsibility Driven Design with CRC cards Richard Gesick.
WHO HAS THE RIGHT-OF-WAY? Definition of right-of-way The right of one roadway user to go first or to cross in front of another; right-of-way must be.
Traffic Signals and Pavement Markings. a. Red is always stop. If it is flashing red, you may go as if a stop sign. A solid red you might be allowed to.
Traffic Lights Green Light- GO – You can proceed only if the intersection is clear. When approaching a green light, check traffic to the left, right, and.
A stop sign is a traffic sign that stands for coming to a complete stop at an intersection or end of the road.
The MOOD Metrics Suite. Number of Methods Inherited b b In order to determine the number of methods inherited, the Software Engineer must do the following,
Lesson 2.3 Today’s Objectives: Describe the difference between broken yellow lines and broken white lines. Explain the differences between a shared left-turn.
High Level Design Use Case Textual Analysis SE-2030 Dr. Mark L. Hornick 1.
traffic lights red lightyellow lightgreen light.
Algorithms and Problem Solving. Learn about problem solving skills Explore the algorithmic approach for problem solving Learn about algorithm development.
Star UML and CRC Cards Pepper.
Planning 2: Estimation Mechanics Emerson Murphy-Hill Creative Commons Attribution 4.0 License. Material Produced by NCSU Software Engineering Faculty.
CRC Cards: Overview Emerson Murphy-Hill Creative Commons Attribution 4.0 License. Material Produced by NCSU Software Engineering Faculty.
An informal, team oriented, OO design system
Object-Oriented Analysis (OOA)
Requirements Engineering
Towards Traffic Light Control through a Multiagent Cooperative System:
OO Domain Modeling With UML Class Diagrams and CRC Cards
Requirements Engineering
Advanced Java Programming
Object-Oriented Analysis
CRC Modeling (class-relationship-collaborator)
للدخول لأول مرة وتحميل الأوفيس
Requirements Engineering
The Stoplight.
Red lights, yellow lights, and green lights
The Stoplight.
TRAFFIC AND ROAD SAFETY
Definition: Characteristics Examples Additional Notes: Draw Examples:
On to Object Design c. 14.
Presentation transcript:

CRC Cards: Construction Emerson Murphy-Hill Creative Commons Attribution 4.0 License. Material Produced by NCSU Software Engineering Faculty.

Step 1: Identify and assign candidate classes Read requirements specification. Highlight nouns and noun phrases to give candidate classes (possibly excluding abstract nouns). Write each candidate class down on an index card. Assign each index card to one person who is participating in the CRC card modelling session.

Step 2: Determine a set of specific scenarios Develop a comprehensive and specific set of end-to-end scenarios based upon the requirements. A scenario is a sequence of actions that illustrates behavior. Example: Requirement: The alarm clock shall allow a user to set the time. Scenario: The user sets the time for 1:15PM.

Step 3: Walk through the scenario, naming cards and responsibilities Walk through the handling of a scenario case pointing to or picking up the cards, naming their responsibilities and how they handle and delegate each request. Add new cards as classes are needed. Note: It’s always good to do very basic/mainstream scenarios first, then explore alternative/complicated scenarios.

Clear Intersection Example Car wants to drive through an intersection. The car can only drive through the intersection if the traffic light is green and there are no cars in the intersection. Otherwise, the car needs to join a queue.

Step 1: Identify and assign candidate classes Car wants to drive through an intersection. The car can only drive through the intersection if the traffic light is green and there are no cars in the intersection. Otherwise, the car needs to join a queue. Car Traffic light Queue Intersection

Step 2: Determine a set of specific scenarios Car approaches the intersection and the light is green and there are no cars in the way. Car approaches the intersection and the light is red. Car is in the queue and the light turns green.

Step 3: Walk through the scenario, naming cards and responsibilities Index Card: Car Responsibility Drive Join Collaborator Traffic light Queue Intersection Car Car approaches the intersection and the light is green and there are no cars in the way. Car approaches the intersection and the light is red. Car is in the queue and the light turns green.