Design Patterns used in Tree Class:



List of Classes in the Sort Application:

See source code for purposes of each class.

AccessTable

Array

CapEveryOtherCharVisitor

CapitalizeVisitor

CaseCompare

Compare

EncryptVisitor

FirstPivotStrategy

Input

InvalidArgsException

LastPivotStrategy

LinePtr

NumCompare

Options

PivotStrategy

QuickSort

Sort

SortApp

SortATAdapter

SystemSort

UnCaseCompare

VisitableObject

Visitor

Class Diagram for Sort Application:

[pic]

Design Patterns used in Sort Class:

-Adapter Pattern:

Intent: Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.

Implementation: The C++ reference solution made use of the Adapter Pattern in a few different locations by overloading operators. Because Java does not allow us to overload operators we simulated the adaptor pattern. We assumed the elementAt method to be analogous to the operator [] and the compare method is analogous to the C++ operator ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download

To fulfill the demand for quickly locating and searching documents.

It is intelligent file search solution for home and business.

Literature Lottery

Related searches