Hi,

further question: how to represent the following
nested loop in Sequence Diagram:

class A {
   ...
   void msg1() {
      for (i=0; i<10; i++) {
         B.msg2();
         for (j=0; j<10; j++)
            C.msg3();
      }
   }
   ...
}

Thanks in advance for any response!

-Petrus
CS Faculty, Univ of Indonesia


On Wed, 26 Sep 2001, Nithyanandham M wrote:

> 
> 
> 
> One way: -
> 
>    _______      ______      _______
>   |   A   |      | B    |    |   C   |
>   |_______|    |______|    |_______|
>       |            |           |
>       |Message     |           |
>  If X |----------->|           |
>       |            |           |
>       |Message     |           |
> else  |------------|---------->|           
>       |            |           |
>       |            |           |
> end if|            |           |
> 
> 
> another way: -
> 
> 
>    _______      ______      _______
>   |   A   |      | B    |    |   C   |
>   |_______|    |______|    |_______|
>       |            |           |
>       |[X]Message  |           |
>       |----------->|           |
>       |            |           |
>       |[non X]Messa|ge         |
>       |------------|---------->|           
>       |            |           |
>       |            |           |
>       |            |           |
> 
> 
> 
> iteraion(ex: while loop): -
> 
> 
>    _______      ______      
>   |   A   |      | B    |    
>   |_______|    |______|    
>       |            |       
>       |[X*]Message  |      
>       |----------->|       
>       |            |       
>       |            |       
> 
> 
> 
> 
> Nithyanand.
> Siemens, Bangalore, India.
> (Opinions expressed are my own and do not reflect the opinions of my
> employer, Siemens)
> 

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to