Upload
esmerelda-diaz
View
50
Download
0
Embed Size (px)
DESCRIPTION
樣式導向設計 (Pattern-Oriented Design) 課程簡介. Ku-Yaw Chang [email protected] Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University. Course Information. Elective with 3 credits Text Book - PowerPoint PPT Presentation
Citation preview
樣式導向設計樣式導向設計(Pattern-Oriented Design)(Pattern-Oriented Design)
課程簡介課程簡介Ku-Yaw ChangKu-Yaw Chang
[email protected]@mail.dyu.edu.twAssistant Professor, Department of Assistant Professor, Department of
Computer Science and Information EngineeringComputer Science and Information EngineeringDa-Yeh UniversityDa-Yeh University
222004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
Course InformationCourse Information
Elective with 3 creditsElective with 3 creditsText BookText Book Alan Shalloway and James Trott, Alan Shalloway and James Trott,
Design Patterns ExplainedDesign Patterns Explained, , Addison Wesley, 2002.Addison Wesley, 2002.(ISBN: 0-201-71594-5)(ISBN: 0-201-71594-5)
332004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
Course InformationCourse Information
Major Reference BookMajor Reference Book E. Gamma, E. Helm, R. Johnson and J. Vlissides, E. Gamma, E. Helm, R. Johnson and J. Vlissides,
Design Patterns - Elements of Reusable Object-Design Patterns - Elements of Reusable Object-Oriented SoftwareOriented Software,,Addison-Wesley, 1995.Addison-Wesley, 1995.(ISBN: 0-201-63361-2)(ISBN: 0-201-63361-2)
GoF (Gang of Four)GoF (Gang of Four)23 different patterns23 different patternsA must for C++ developers.A must for C++ developers.
442004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
GradingGrading
All examinations and quizzes are in English.All examinations and quizzes are in English.Grading PolicyGrading Policy Attendance and Quizzes/AssignmentsAttendance and Quizzes/Assignments
30%30% Midterm ExamMidterm Exam
30%30% Final ProjectFinal Project
40%40% Extra BonusExtra Bonus
10%10% Public discussion is encouraged !Public discussion is encouraged !
552004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
GradingGrading
Final grades may be adjusted based on a Final grades may be adjusted based on a linear mapping.linear mapping. Ex. 45 as thresholdEx. 45 as threshold
100-X / 100-45 = 100-X / 100-45 = 100-X’ / 100-60 100-X’ / 100-60
40(100-X) = 55(100-X’)40(100-X) = 55(100-X’)
X’ = (300+8X) / 11X’ = (300+8X) / 11 X = 100 -> X’ = 100X = 100 -> X’ = 100 X = 45 -> X’ = 60X = 45 -> X’ = 60 X = 0 -> X’ = 27X = 0 -> X’ = 27
100
45
60
100
XX’
662004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
PrerequisitesPrerequisites
Object-Oriented ConceptObject-Oriented Concept
Object-Oriented Programming LanguageObject-Oriented Programming Language C++C++
Visual C++ .Net 2003Visual C++ .Net 2003
772004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
OutlineOutline
OverviewOverview Object-Oriented Paradigm (Chapter 1)Object-Oriented Paradigm (Chapter 1) UML – Unified Modeling Language (Chapter 2)UML – Unified Modeling Language (Chapter 2) A Review of C++A Review of C++ An Introduction to Design Patterns (Chapter 5)An Introduction to Design Patterns (Chapter 5)
Pattern by pattern Pattern by pattern Architectural PatternsArchitectural Patterns
Document-View PatternDocument-View Pattern Design PatternsDesign Patterns
The Facade Pattern (Chapter 6)The Facade Pattern (Chapter 6)The Adapter Pattern (Chapter 7)The Adapter Pattern (Chapter 7)The Bridge Pattern (Chapter 9)The Bridge Pattern (Chapter 9)The Abstract Factory Pattern (Chapter 10)The Abstract Factory Pattern (Chapter 10)
882004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
Final ProjectFinal Project
Divided the class into groups, for each groupDivided the class into groups, for each group PresentationPresentation
Select a pattern from GoFSelect a pattern from GoF Using UMLUsing UML
A ProgramA ProgramConsist of a pattern or patterns (better)Consist of a pattern or patterns (better)
992004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
Patterns in GOFPatterns in GOF
Creational PatternsCreational Patterns Abstract FactoryAbstract Factory BuilderBuilder Factory MethodFactory Method PrototypePrototype SingletonSingleton
Structural PatternsStructural Patterns AdapterAdapter BridgeBridge CompositeComposite DecoratorDecorator FacadeFacade FlyweightFlyweight ProxyProxy
10102004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
Patterns in GOFPatterns in GOF
Behavioral PatternsBehavioral Patterns Chain of ResponsibilityChain of Responsibility CommandCommand InterpreterInterpreter MediatorMediator MementoMemento
ObserverObserver StateState StrategyStrategy Template MethodTemplate Method VisitorVisitor
11112004/9/212004/9/21 Pattern-Oriented DesignPattern-Oriented Design
The EndThe End