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

  • Home
  • SEARCH
  • 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 999235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:19:10+00:00 2026-05-16T07:19:10+00:00

This is not an homework. But an practice to understand what are the best

  • 0

This is not an homework. But an practice to understand what are the best practices to design , implement and unit test a particular scenario and so discussion explaining why a particular approach was taken as compared to other would be really helpful from understanding point of view to gain better understanding of how to approach and deal with similar situations.

How to approach following scenario from design, implementation and unit testing perspective.

Scenario

A speaker and a listener communicate with each other. The speaker can present emotions to the listener: smile,anger, courtesy, joke, fury, etc.
The listener gives a proper response for each communication (say something, attack, defense, ignore, etc.).

Questions

  • What will be the listener objects’s reaction rules ?
  • How would this be designed using UML and implemented by simulating it using text outputs ?
  • What would be the JUnit test case for the checking proper implementation of this scenario ?
  • 1 1 Answer
  • 1 View
  • 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-16T07:19:11+00:00Added an answer on May 16, 2026 at 7:19 am

    Following steps are extremely important for any development.

    Requirement gathering

    Freezing and documenting exact requirements. Drafting exact use cases help a lot.

    Design

    Designing the solution. Here different approaches can be chosen depending upon the nature of project.

    • Incremental pattern :
      For a long term project with short spurts of deliverables and reviews, an incremental pattern helps a lot.
    • Concrete pattern :
      Here you design your application in thorough. The releases cycles are longer. Every feature is completed first and then delivered.

    Using UML following diagrams are important.

    • Class diagrams :
      Should list all classes in detail. Use of Interface, Abstract classes, helper classes, Third Party APIs can be detailed here.
    • Sequence diagrams :
      Should list the flow of actions for all listed use cases in project.

    Use of appropriate design patterns should be included here. Test cases should be drafted matching the use cases, generally in relation like 1 or more test cases per use case.

    There actually is a lot to describe here. What I have provided is the approach that should be taken while implementing the project.

    Considering your application, breaking it down to different pieces can help design it simpler. On a broad level I can think of following pieces.

    1. Entity – Speaker, Listener
    2. Expressions – List of expressions
    3. Rules – Rules in the form of reaction expression for speaker expression.
    4. Communication – Communication layer which will be used by speaker to listener (something like a broadcast) and from listener to speaker(something like a point to point queue)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This IS NOT homework, but it is a practice that the teacher gave us
To clarify before I begin, this is NOT homework but rather I am studying
This is not exactly homework but it is related to my studies: A grammar
well I'm doing this homework but I'm still not viewing the fault... When I
Ok this is a homework questions, but I cannot find the answer anywhere, not
Another problem I try to solve ( NOTE this is not a homework but
This is in relation to a homework assignment but this is not the homework
This is not a homework. Visually it looks like a tree, but all leafs
This is not homework but has a direct relation to my homework. In other
I would like to ask some help. This is not homework but it is

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.