Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7248891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:12:10+00:00 2026-05-28T22:12:10+00:00

I have a complex hierarchy of objects that we can represent, for illustration purpose,

  • 0

I have a complex hierarchy of objects that we can represent, for illustration purpose,
like that:

class Base {
 public handle() {
  //base handling code
  onHandlingDone()
 }

 public onHandlingDone() {
  //base onHandlingDone code 
 }
}
//--------------------------------------
class Regular extends Base {
 public handle() {
   super.handle();
   //regular handling code
 }

 public onHandlingDone() {
  //regular onHandlingDone code 
  super.onHandlingDone()
 }
//--------------------------------------
}
class Special extends Regular {
 public handle() {
   super.handle();
   //special handling code
 }
 public onHandlingDone() {
  //special onHandlingDone code 
  super.onHandlingDone()
 }
}

Note: this is not my Design, I’m doing maintenance on a huge project. There are a lots of ‘Special’ implementation. Refactoring is not an option.

There is a lot of interleaved code: method are calling super class methods that are also super class method, and some call are to other methods are done at each level.

Now I want to draw some sequence diagram to help me understand what is going on.

How should I represent these calls across the hierarchy ?
– Unrolling the hierarchy would add lots of noise in the diagram, but will be accurate.
– Masking the hierarchy will result in a simpler diagram, but it is confusing (where is that damn method again, where in the hierarchy am I when I send this message ?)

Is there any usual way to deal with this kind of complex class hierarchy in sequence digram ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:12:11+00:00Added an answer on May 28, 2026 at 10:12 pm

    You could do this if you unroll the hierarchy and have swim lanes for the Super->Regular->Base. However one way to minimise the noise would be to make a super stereotype instead of using self calls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a quite complex class hierarchy in which the classes are cross-like depending
I have a complex command that I'd like to make a shell/bash script of.
I've got this trivial class hierarchy: class Base { public: virtual int x( )
I have a complex object hierarchy that I've been wrestling with to get passed
I have a complex hierarchy of nested objects, with all of the child objects
I have a complex .NET Remoting server app that provides a couple of services.
I have some complex stored procedures that may return many thousands of rows, and
I have two complex (i.e. objects with string, int, double, List and other home
I have a fairly complex WordPress + bbPress installation and I would like to
I have a widget that displays a filesystem hierarchy for convenient browsing (basically a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.