Design Pattern

Chain of responsibility

Intent

decouple requests

sender

receiver

motivation

help facility

applicability

request automatical ascertain

multi handlers

request to one

handler specified dymatically

structure

participants

Handler

ConcreteHandler

Client

collaborations

consequences

benefits

Reduce coupling

flexibility in assigning responsibilities

liabilities

unhandled maybe

implementation

implementing the successor chain

use existing links

define new links

connecting successors

representing requests

hard-coded operation invocation

a single handler function

request objects

qt's event system

used in our project

Composite

Command

Intent

parameterize requests

support undo operations

motivation

user interface toolkits

applicability

request automatical ascertain

multi handlers

request to one

handler specified dymatically

structure

participants

Handler

ConcreteHandler

Client

collaborations

consequences

benefits

Reduce coupling

flexibility in assigning responsibilities

liabilities

unhandled maybe

implementation

implementing the successor chain

use existing links

define new links

connecting successors

representing requests

hard-coded operation invocation

a single handler function

request objects

qt's event system

used in our project