Post on 25-Jan-2016
description
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 1
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 2
identify customer rapprove order r u uarrange for trucks(s) u r uidentify truck u u r rload container r r ufinish truckaccept load u r r caccept order u u c u
notes and outstanding items/issues:• finish truck – has no operations because “load the truck” and “accept the load” do all the work -so must remove this from activity diagram• arrange truck – the same truck may be used on several occasions – need some kind of schedule possibly – or can assign trucks to order items and check to see if truck is available/suitable
first a
ttempt
-leads to
questions
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 3
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 4
actor actionlog inchoose shipment accept fn.identify orderselect next itementer/accept quantity receivedaccept order
alternate.... customer rejects order
* =separate use case
system responseretrieve customer data display list of customer’s ordersretrieve order detailspresent item detailsstore quantity receivedrelease truckcreate invoice data*create carrier payment data*
{ {
high-level use case: customer accepts order
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 5
actor + system actions responsible class(control class to be added later)
log in interface(note 1)
retrieve customer data customer + interfacechoose shipment accept fn. order (show all orders) display customer’s orders interfaceidentify shipment order + order detail retrieve order interfaceselect next item order detail present item details interfaceenter/accept qty. rec’d order item store quantity received order itemclose order order release truck truck create invoice data invoice create carrier payment data payment
{
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 6
based on specs so far,here are some attributes
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 7
event use case truck statesadd a truck to carrier’s fleet maintain carrier truck is availablecustomer accepts shipment accept order truck is available (again)arrange for a truck to be used scheduling truck is bookedshipper identifies/loads truck shipping/loading truck is in useremove truck from list maintain carrier truck is retired
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 8
Class name: OrderResponsibilities Collaborationsprovide order informationgive list of items OrderItem has the detailsadd/change items OrderItem creates/updates selfaccept reservation of truck(s) Truck will determine feasibilityselect/release truck Truck status changecreate carrier payment Payment created create invoice Invoice createdclose order
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 9
Class name: PaymentResponsibilities Collaborationscreate paymentcalculate item cost OrderItem for quantity
Product for weight and dimensionsadd base ratecalculate total costprepare record for A/P Carrier for payment terms
e.g. of progress in defining /documenting requirements CSCC40 tutorial 9-A 10
Class name: InvoiceResponsibilities Collaborationscreate invoicecalculate item cost Product for prices
OrderItem for quantitycalculate shipping cost Payment for costscalculate totalprepare record for A/R Customer for billing agreement