Structured Matcher
A Case Study in Object-Oriented Redesign
Introduction
Structure Matching
Structured Matcher Program
Example of Redesign
Setting Cell Editor in SimpleMatcher
Adapting QuestionAskDialog
Evaluating SimpleMatcher
Results Achieved: example
Truth Table / Simple Matcher
|
Higher grade |
Start after fill up |
Worse after fill up |
Results |
|
True |
True |
True |
Strongly Match |
|
False |
True |
False |
Slightly Against |
|
? - Don't Care |
True |
? - Don't Care |
Neutral |
|
? - Don't Care |
? - Don't Care |
? - Don't Care |
Against |





Design Patterns: Basic Concepts

Set Cell Editor



Before redesign:
After redesign:








Polymorphism pattern calls for using polymorphic operations when behavior varies dependent on the type of the object





