Event-driven Design

An Event to Remember - A Two Act Play about Events

Act 1: On the Golf Course


Main Program

Role:

Get the system started

Responsibilities:


Type Mouse

Role:

Record student input from mouse. This can happen at any time.

Responsibilities:


Type Taskmaster

Role:

Process events and schedule tasks

Responsibilities:


Type GUI

Role:

Display graphics on screen and arbitrate events

Responsibilities:


Type Pushbutton

Role:

Handle activate events when clicked on

Responsibilities:


Type Golfman

Role:

Process activities associated with golfing

Responsibilities:


Type Window

Role:

Display graphics and receive input events (button and key)

Responsibilities:

Act 2: In the Club House


Type Figure

Role:

Process activities for shape/behavior objects

Responsibilities:


Type Click

Role:

Process a buttonClick by executing the associated method.

Responsibilities:


Type Manualman

Role:

Responsibilities: