Title: Adding operations
1Adding operations
2From where?
- General rule
- Constructor
- Selector
- Mutator
- Destructor
- Specific rules
- What mutations or adjustments need to be made?
- E.g. Change claim state, verify accident report,
3Classes identified
- The classes identified in the claims system are
- Claim
- Claimant
- Accident
- Expert
- Expert Report
- Assessor
4(No Transcript)
5How are the classes constructed?
- Some of them have no explicit constructor in the
use case diagram - Assessor
- Expert
- A more comprehensive Use Case diagram should
include a personnel maintenance use case, to add,
adjust or remove assessors and experts.
6The ones we know
- Claim
- The Report a Claim use case
- Constructs a claim object and associates it with
an existing accident object. - Constructs a claimant object or associates the
new claim object with an existing claimant
object. - The Report Accident use case
- Constructs an accident object.
- The Verify an Accident use case
- Adjusts / mutates the accident object.
7- The Assess a claim use case
- Mutates claim
- Selects claim
- The refer to expert
- Mutates claim
- Selects Expert
- Constructs expert report (with request date)
- The Make Expert Report Use case
- Selects the claim
- Selects the expert
- Mutates the expert report (adds content and
report date) - Refer to Underwriter
- Mutates the claim (changes state to U for
underwritten)
8Use Cases in the system so far
- Report a claim
- Report Accident
- View Claim
- Assess a claim
- View Accident
- View Claims by Claimant
- Verify an accident
- Make expert report
- Refer to expert
- Assess a claim
- Settle claim
- Make payment
- Refer to underwriter
9Class / Use Case
Claim Claimant Accident Expert ExpertReport Assessor
Report a claim C C S Â Â Â
Report Accident   C   Â
View Claim S Â Â Â Â Â
Assess a claim M Â Â Â Â Â
View Claim by Claimant S S
View Accident   S   Â
Verify an Accident   M   Â
Make Expert Report M Â Â S M Â
Refer to Expert M Â Â S C Â
Settle claim M Â Â Â Â S
Make payment  ? ? ? ? ? ?Â
Refer to Underwriter M Â Â Â Â Â
CConstructor SSelector DDestructor MMutator
10To do
- Make sure that every Use Case
- Constructs / Selects / Mutates / Destroys one or
more objects - Make sure that every class has
- A constructor
- A Destructor
- At least one selector or mutator
- Add appropriate operations to the class diagram.
11(No Transcript)
12Do the same for the student residence