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 8981305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:18:12+00:00 2026-06-15T20:18:12+00:00

I have to explain the mediator design pattern but I am not sure whether

  • 0

I have to explain the mediator design pattern but I am not sure whether I have used it in a right context so I would like to ask you for your opinions. enter image description here

I have four objects that each of them need to interact with others. So to make the code easier to maintain and reuse I add the mediator pattern so the point is to centralize comples communications and control between related objects.

enter image description here

So my questions is: Do you think it is a good example of Mediator Patterns. Thanks.

  • 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-06-15T20:18:13+00:00Added an answer on June 15, 2026 at 8:18 pm

    This is a good example I guess…

    Mediator are objects which centralise communications to avoid dependencies between every objects which communicate together.

    With your sample, I would just add, for instance, a new WeatherStation class whose role would be to alert drones and rovers to make them go back home, and explain that thanks to the mediator pattern, there is only WeatherStation <-> Mediator interface to implement.

    Instead of :

    WeatherStation<->Scientists
    WeatherStation<->Jedays
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Probably not the best title, but I'll explain: I have an array of objects
i don't know good title but heres the explain i have this link <a
I have seen various answers around helping explain adding records in one-to-many relationships but
I need to accomplish something like (and they have told me explain more with
I have first to explain a little bit my context, then the question: I
If I am not mistaken, it is not possible to have the Explain Plan
I am not sure I am going to be able to explain this one
We have a class home work for design pattern class. In that we have
I would like have a taskpane displayed on each document-windows, I have read all
I hope this post is not a duplicate one. Let me explain: I have

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.