Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Duplicate Sequence diagram flows (vs referencing)

 
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

I've been a silent reader on this board for this certification.. I've been working on Part2 for a few weeks now and I'm almost done.
At this point, the only thing I'm struggling with is the idea of duplicating identical flows in 3 sequence diagrams.
I keep going over this and can't get my mind straight.
My goal here is to have some of your input, opinions, comments...

--------------------------------------------------------
Imagine you have the 2 following use cases :
  • View oranges and pick the nicest
  • View apples, pick the nicest and make juice


  • [SOLUTION 1]
    I could create 2 supports Sequence diagram:
  • (A) View "fruit"
  • (B) Pick nicest "fruit"


  • Then the 2 Sequence Diagrams would be as follow
  • View oranges and pick the nicest (entirely referring to A and B)
  • View apples, pick the nicest and make juice (referring to A, B and adding the juice flow)


  • [SOLUTION 2]
  • Create both Sequence Diagrams from scratch and duplicate the flows in both.

  • --------------------------------------------------------
    By duplicating, it gives me the opportunity to use "getApples()" and "getOranges()" instead of "getFruits(String: fruitName)".
    When reusing sequence diagram, I'm not sure I like the fact that I would have to use generic words (such as fruit)..

    Do you think SUN would mind that I duplicate flows ?
    Or do you think they would mind that they have to look for referenced diagrams ?


    Thanks for your input,
    Alex
     
    author & internet detective
    Posts: 39392
    763
    Eclipse IDE VI Editor Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Alex,
    In real life, I would absolutely go with approach #1. I find myself doing a few things in part 2 that I would never do in real life though to meet what I think Sun wants. I'm under the impression they want the duplication.
     
    Ranch Hand
    Posts: 41
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Feel, Referencing another sequence diagram is a better idea.

    Thanks
    Arpit Jain
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!