OU Courese Banner ADBH Web - TMA05 Question 2
ADBH Web 06-Jan-2009

M206 - TMA05 Question 2

Class association diagram

Class association diagram - Newsagent

Part 2

Class association diagram - Caravan Site

Class Association Diagram for Caravan Site

  • Class: Administration
  • There is only one instance of this class and it is the orchestrating instance.
  • Class: SiteStaff
  • Responsibilities:
  • Maintains employee name and employee number.
  • Keeps track of Manager/Worker structure.
  • Class: Employees
  • Responsibilities:
  • Employees can work at sites and belong to site staff.
  • Records name and employee number.
  • Class: SiteManager
  • is-a-kind-of: Employee
  • Responsibilities:
  • Class: SiteWorker
  • is-a-kind-of: Employee
  • Responsibilities:
  • Maintains SiteWorker hourly pay rate
  • Class: Caravan
  • Responsibilities
  • Maintains the caravan grade, identity number
  • Keeps Track of Caravan instances allocated to a Site Instance
  • Class: Contract
  • Responsibilities:
  • Maintains the current contract, includes start date, length of contract.
  • Class: HolidayGroup
  • Responsibilities: Maintains the holiday group leaders name, address and number of previous stays.
  • Invariant1:
  • Any given instance of Employee is associated with via the Assigned-To association with one or more Site instances.
  • SiteWorker instance is associated with the SiteStaff instance via the Consists-Of association, where the
  • SiteStaff is associated with a SiteManager via the is-Managed-By association, that is the association of instance
  • of Site via the Responsible-For association.
  • lnvariant2
  • Each HolidayGroup is associated with instances of Caravan in the following way:
  • That same instance of Contract is associated with a single instance of Caravan via the Applies-to association. That same instance of Site is associated with Caravan via the Allocated-To-Holiday-Group association.

Question 1c - Question 3

Top of Page

 

 

 

Page built in 0.0016 seconds