A closed and filled arrowhead signifies that the message is sent synchronously. Most method calls in object-oriented programming languages are synchronous. Synchronous messageĪ synchronous message is used when the sender waits until the receiver has finished processing the message, only then does the caller continue (i.e. Near the arrow, the name and parameters of the message are shown. The arrow originates at the sender and ends at the receiver. When a target sends a message to another target, it is shown as an arrow between their lifelines. Note that the text of a class is not underlined, which is how you can distinguish it from an object. shared or static methods in some programming languages) can be sent to a class. Note however that the 'Type' part designates the type of the elements and not the type of the collection itself. Its basic notation isĪgain, a name and/or type can be specified. When you want to show how a client interacts with the elements of a collection, you can use a multiobject. A shorter name carries the same amount of information and doesn't clutter the diagram (e.g. don't use 'aStudent' for an instance of type Student). Try to avoid long but non-descriptive names when you're also specifying the type of the object (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |