Algorithms and OOD (CSC 207 2014F) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [Learning Outcomes] [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Student-Curated Resources] [Java 8 API] [Java 8 Tutorials] [Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2014S (Rebelsky)] [CSC 207 2014F (Walker)] [CSC 207 2011S (Weinman)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)] [Issue Tracker (Textbook)]
Held: Monday, 10 November 2014
Back to Outline 37 - An Introduction to Linear Structures. On to Outline 39 - Priority Queues and their Basic Implementation.
Summary
We consider our second important linear structure, the queue.
Related Pages
Overview
Administrivia
What interesting (or not so interesting) design ideas did you get
from ReportingLinearStructure.java?
Here are some of the things I see as important ideas:
ReportingLinearStructure.java shows another mechanism for adding
functionality, one that works for an arbitrary class that implements
an interface.wrapped objector
wrapped class.
Here's my really bad ASCII art diagram.
Wrapper
+-------------------+
Client ---> fun: wrapped.fun |
| |
| wrapped |
| +---------+ |
| | fun | |
| +---------+ |
+-------------------+
Uses