Skip to content

v.1 Chain of Responsability pattern

Latest

Choose a tag to compare

@LunalejaS LunalejaS released this 05 Sep 04:21
faf31f6

Chain of Responsibility Pattern — v1

Overview

This release contains the implementation of the Chain of Responsibility behavioral design pattern applied to an academic workflow for handling student requests.

The system represents a chain of academic handlers:

Instructor → Professor → Coordinator → Secretary → Dean's Office

Each handler evaluates whether it is responsible for processing a request. If not, the request is automatically passed to the next handler in the chain.

Included

  • Handler interface defining the common handling behavior.

  • BaseHandler abstract class for managing the chain.

  • Five concrete handlers:

    • Instructor
    • Professor
    • Coordinator
    • Secretary
    • Dean's Office
  • Client class with six test cases demonstrating different request flows.

  • UML class diagram representing the structure of the pattern.

  • Console output demonstrating how requests are handled by different levels of responsibility.

Purpose

The implementation demonstrates how the Chain of Responsibility pattern reduces coupling between the client and the specific handler responsible for each request.

The client only needs to send the request to the first handler in the chain, while the system determines which handler should process it.

Version

v1.0.0 — Initial Release

Last modification: September 4, 2026