Frameworks and Patterns

Frameworks and Patterns - CSCI 253 Object-Oriented Design...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCI 253 - Object-Oriented Design Frameworks and Design George Blankenship 1 CSCI 253 Frameworks and Design George Blankenship 1 Object Oriented Design: Frameworks and Design George Blankenship Background • A class is a mechanisms for encapsulation, it embodies a certain service providing the data and behavior that is useful in the context of some application. A single class is rarely the complete solution to some real Frameworks and Design George Blankenship 2 class is rarely the complete solution to some real problem • There is a growing body of research in describing the manner in which collections of classes work together in the solution of problems. Application frameworks and design patterns are two ideas that became popular in this context Application Frameworks • An application framework is a set of classes that cooperate closely with each other and together embody a reusable design for a general category of problems • Although one might abstract and discuss the design elements Frameworks and Design George Blankenship 3 that lie behind the framework, the framework itself is a set of specific classes that are typically implemented only on a specific platform or limited set of platforms • The framework dictates the overall structure and behavior of the application. It describes how responsibilities are partitioned between various components and how these components interact
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CSCI 253 - Object-Oriented Design Frameworks and Design George Blankenship 2 ____ ___ _ ___ A Framework as an Upside-down Library • In a traditional application the application-specific code defines the overall flow of execution through the program occasionally invoking library-supplied code Frameworks and Design George Blankenship 4 ____ ___ _ A framework reverts this relation: the flow of control is dictated by the framework and the creator of a new application merely changes some of the methods invoked by the framework • Inheritance is often used as powerful mechanism for achieving this. Alternatively application- specific components that obey a specified interface are plugged in GUI Application Framework • GUI application frameworks simplify the creation of graphical user interfaces for software systems • A GUI application framework implements the behavior expected from a graphical user interface – windows buttons menu's text fields Frameworks and Design George Blankenship 5 windows, buttons, menu s, text fields – move and resize windows – handle mouse events on buttons and menus • A new application is built by specifying and arranging the necessary elements and by redefining certain methods – buttons, menu's, text fields – responses to the mouse and key events Simulation Application Framework • Simulation frameworks simplify the creation of simulation style applications • A simulation framework provides a general-purpose class for managing the types of objects in the simulation Frameworks and Design George Blankenship 6 • The heart of a simulation framework is a procedure that cycles
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 15

Frameworks and Patterns - CSCI 253 Object-Oriented Design...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online