uc 11 - yshehab/SchoolRoomBooking GitHub Wiki

11. View members and their details for a given organization

Coordinating method

Collection <Members> getMembers(Organization anOrganization)

Object diagram for a typical scenario.

Walk-through for this scenario

Given: The Organization object, organization14

  1. Access the collection of Member objects linked to organization14, which in this case is {member4, member36, member67}.
  2. Return {member4, member36, member67}

Sequence diagram for this scenario

Notes on alternative scenarios

An Organization object should always be linked to at least one Member object. If a Letting object is not linked to any Organization objects then an empty collection should be returned.

Updates to implementation model

Classes

Class Member

Links

None

Methods

None

Class Organization

Links
Collection<Member> members
Methods
Collection <Member> getMembers()

Post-Condition: returns a collection of all the linked Member objects

void addMember(Member aMember)

Post-Condition: a reference is recorded to aMember

Class LettingCoord

Links

None

Methods
Collection<Member> getMembers(Organization anOrganization)

Post-Condition: returns a collection of all Member objects linked to anOrganazation

Navigations

None

Discussion

None

⚠️ **GitHub.com Fallback** ⚠️