Collaboration Diagrams
Example
Building Collaboration Diagrams
University Enrolment Example
Modelling Operations Further aspect of modelling interactions is to identify the operations that each class supports Public interface of a class is determined - the set of operations that a class offers as a service to other classes - the operations are declared with public visibility - it is only via public interface that objects can collaborate - in analysis we define only the signature (operation name, list of formal arguments, return type) of each public operation - in design we provide a definition for the algorithms of methods that implement operations
Modelling Operations Discovering class operations - every message in a sequence diagram must be serviced by an operation in the target object -from expected object responsibilities including the CRUD operations : create, read, update, delete - CRUD operations allow other objects to send messages to an object to request: a new object instance access to the state of an object modification of the state of an object that an object destroy itself
Modelling Operations Specifying class operations - the class diagram needs to be modified to include operation signatures
University Enrollment - Example