Zicomi Systems Logo Zicomi Site Banner
uml examples  |  home  |  contact us  |  your privacy
Company
Services
Products
Support
Resources
  OMG Standards
OMG Logo
  Have You Heard?
UML Diagrams
Zicomi Systems publishes some UML example diagrams online from the world famous UML dictionary.
more...
Version 2.5 Released
Zicomi Systems is delighted to announce that version 2.5 of Zicomi Mentor is released. With support for UML 2.0 and all thirteen UML diagrams
more...
Zicomi Systems' Director
speaks about the UML at Objects by Design - an informative interview
more...
Partner Programme
Zicom Systems is delighted to announce a new world wide partner programme, become a partner today.
more...
OMG Member
Zicom Systems is made a member of the OMG!
Break (Combined Fragment)
Break (Combined Fragment)  
A break interaction operator (signified by the value of break) defines a combined fragment where the messages enclosed within the fragment are performed instead of the messages in the outer (enclosing) fragment. The break operator is typically used when a given message or set of messages will halt the performance of the enclosing set of messages.

Explanation

The break operator is used in situations where the performance of messages needs to be stopped, for example to break out of a loop, or a set of sequenced messages. Typically a combined fragment with a break operator is enclosed in another fragment, if the message enclosed in the break operator occurs then the messages outside the break are halted and are not performed. This concept occurs in our everyday life for example where we continue to play a game until it starts to rain whereupon the game is abandoned. At a programming level this could be represented by the break statement in a loop that terminates the loop.

Related Entries

Loop (Combined Fragment)
Loop (Combined Fragment)  Graphically Similar,  Used Together
A combined fragment with an operator of loop is related to a combined fragment with an operator of break because a fragment with a break operator is often nested inside a loop fragment and provides a way for the messages contained in the loop to be halted when a particular message occurs. The break operator can be used with other interaction fragments but it is commonly used in conjunction with the loop.

back to the index...
Unified Modeling Language and UML are either registered

trademarks or trademarks of Object Management Group, Inc. in the

United States and/or other countries.