Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. UML - Okay design gurus, can you help me?

UML - Okay design gurus, can you help me?

Scheduled Pinned Locked Moved IT & Infrastructure
csharpdesignhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rickard Andersson20
    wrote on last edited by
    #1

    If an method would instantiate a local object that will do an asynchronous operation, how would that look in UML? A code snippet of what I want in UML is:

    // C#
    class MyClass
    {
    public DoOperation()
    {
    MyAsyncObject obj = new MyAsyncObj();
    obj.StartSomethingAsynchronously();
    }
    }

    If obj was a member varible the diagram would look something like this:

    ----------- 0..* -----------------
    | MyCLass |<>--------->| MyAsyncObject |


    Hope I'm clear enough... :~ Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318

    R 1 Reply Last reply
    0
    • R Rickard Andersson20

      If an method would instantiate a local object that will do an asynchronous operation, how would that look in UML? A code snippet of what I want in UML is:

      // C#
      class MyClass
      {
      public DoOperation()
      {
      MyAsyncObject obj = new MyAsyncObj();
      obj.StartSomethingAsynchronously();
      }
      }

      If obj was a member varible the diagram would look something like this:

      ----------- 0..* -----------------
      | MyCLass |<>--------->| MyAsyncObject |


      Hope I'm clear enough... :~ Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318

      R Offline
      R Offline
      Ryan Roberts
      wrote on last edited by
      #2

      Something like this I guess, my UML is a little rusty.

      :MyClass :MyAsyncObj
      * |
      * DoSomeThingAsynchronously |
      *--------------------------\*
      * *
      * *
      * *
      * *
      * *
      * *
      * *
      * *
      * *
      * *
      \/ \/

      The \ on the end of the dosomethingasynchronously message arrow is meant to be a half arrowhead, showing that its an asynch message. Look up 'Interaction diagams' for a better explination than I could give. Ryan

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups