uc 14 - yshehab/SchoolRoomBooking GitHub Wiki
Collection<Account>
getAccounts(Organization anOrganization)
/images/use_case_14_object_diagram.jpg
Given: The Organization object, organization34
- Access the collection of Permit objects linked to organization34, which in this case is {permit3, permit45}.
- Create a new empty collection, results.
For each Permit object accessed in step 1:
- Access it_s collection of Account objects
- Add each Account object to results
- Return results
/images/use_case_14_sequence_diagram.jpg
If an Organization is not linked to any Permit objects, or it_s linked Permit objects are not linked to any Account objects then return an empty collection
- none new
Collection<Account> getAccounts()
Collection<Permit> permits
- Collection
<Account>
getAccounts() - Post-Condition: returns a collection of all the Account objects linked to the linked Permit objects
- None
Collection<Accounts> getAccounts(Organization anOrganization)
- Post-Condition: returns a collection of all the Account objects linked to the linked Permit objects linked to anOrganazation
- Organization to Permit