Assignment-1-Solution

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Task1(3marks)Developtheinitialbusinessglossary(ofaboutadozenterms)fortheAPsystem.Task1Answer:Task2(3marks)DevelopausecasemodelfortheAPsystem.Yourmodelshouldidentifyabouttenusecases.DistinguishProvideWebAccessasoneoftheusecases.Showthemostimportantrelationships,including(ifapplicable)extendandincluderelationships.Makethedistinctionbetweenboth-directionalanduni-directionalassociations,whenappropriate.Usegeneralizationsanddependencyrelationships(inparticularwithregardtoactors).Describethemeaningofthemodel,includinganyassumptionsyouhavemade,intextunderthediagram.Task2Answer:TermDefinitionAcademicPayroll(AP)systemAsoftwaresystemusedtoissuepaymentstoacademicstaff.Full-timeacademicstaffApersonemployedinafull-timecapacitywiththeUniversitytoperformacademicduties.CasualacademicstaffApersonemployedinanasneededbasiswiththeUniversitytoperformacademicduties.leaveTimespentawayfromtheUniversityinaperiodthatwouldnormallybeconsiderednormalworkinghours.AnnualleaveYearlyentitlementoffourweeksleaveLong-serviceleaveEntitlementofsixmonthsleaveformembersofstaffemployedformorethantenyears.leavebalancesEmployeesremainingleaveentitlementContractualacademicstaffSeecasualacademicstaffcontractAnagreementbetweentheUniversityandacasualacademictoperformteachingdutiestobepaidanhourlyrate.paymentsMoneypaidtoemployeesinreturnforwork.sickleaveEntitlementofleavebasedonanemployee’shealthstatusWindowsAgraphicaluserinterfacedesktopinterfaceAclientprogramrunonanemployee’sdesktopcomputerweb-basedaccessAclientprogramrunwithinabrowseronanemployee’sdesktopcomputerbrowserAprogramusedforbrowsingtheworld-wide-webThemodelconsistsoftenusecasesofinteresttofiveactors(asFull-timeAcademicandCasualAcademicaremerelysubclassesofAcademic).ThemainactorisPersonnel(i.e.employeesinthePersonnelDepartment).Actorswhichareclearly“externalentities”includeContractManagement,BankSystem,andMailOffice.Full-timeAcademicinteractsdirectlywithProvideWebAccess.CasualAcademichasauni-directionalassociationtoManageTimecards.Anyacademic(signifiedbyAcademic)mayhaveadependencyrelationshiptoMailOfficeand/orBankSystem.AcentralusecaseisGeneratePayment.ThisusecasecanbeextendedbyManageTimecardsandGeneratePaySlip(forthebenefitofCasualEmployee).ItcanalsobeextendedbyGeneratePaycheck(forMailOffice)andMakeBankDeposit(forBankSystem).PersonnelcommunicateswiththreeprincipalfunctionsoftheAPsystem–GeneratePayment,ManageLeave,andManageEmployee.Thesethreeusecasesproducedata,storedintheAPdatabase,whichprovidesmaindatainputtoProvideWebAccess.However,wedecidednottoclutterthemodelbyshowingrelevantassociationsbetweenthesefourusecases.Instead,themodelmakesonlyexplicittheinclusionofModifyPersonalDetailsandModifyPaymentMethodinProvideWebAccess.Finally,notealsoauni-directionalassociationfromGeneratePaymenttoModifyPaymentMethod.ContractsManagementAcademicModifyPersonalDetailsModifyPaymentMethodFull-timeAcademicManageLeaveGeneratePaymentProvideWebAccessManageEmployeeextendGeneratePaySlipextendMakeBankDepositBankSystemCasualAcademicManageTimecardsextendGeneratePaycheckMailOfficePersonnelincludeincludeextendextendTask3(3marks)Developanentityclassdiagram(i.e.entityclassesonly)forAP.Yourmodelshouldidentifyabouttenentityclasses.Showsomesignificantattributesinclasses(specifybothattributesnamesandJavatypes).Specifyrelationshipsbetweenclasses.Usegeneralizationandaggregation,ifapplicable.Consideruni-directionalassociations.Describethemeaningofthemodel,includinganyassumptionsyouhavemade,intextunderthediagram.Task3Answer:Themodelconsistsofnineclasses,althoughthetenthclass(PaymentMethod)isdirectlyreferredtointhePaymentclassandcouldbeaddedatwill.AnAcademiccontainsPaymentobjects.TherewillbemanyPaymentobjectsovertimeforeachAcademic.EachPaymentobjectreferstoexactlyonePayPeriod.Similarly,eachTimecardobjectreferstoexactlyonePayPeriodAnAcademiccanbeeitherFull-timeAcademicorCasualAcademic.Full-timeAcademicholdssalaryandtaxinformationnecessarytocomputePayment.ItalsocontainsaLeaveobjectthatstoresleavebalances.CasualAcademiccontainsTimecardandContractobjects.Timecardstoreshoursworkedperpayperiod,whichcanbecomputedfromTimecardEntryobjects.EachCasualAcademicobjectstoresinformationiftaxshouldbedeductedandwhatisthemeansofpaymentnotification(mailoremail).Academicname:Stringaddress:StringphoneNumber:StringLeaveannualLeaveBalance:intlongServiceLeaveBalance:intFull-timeAcademicannualSalary:floatyearToDateSalary:floatyearToDateTax:float11PaymentgrossAmount:floattax:floatpaymentMethod:PaymentMethodnextPayDate:Date0..n0..nContracthourlyRate:intPayPeriodstartDate:DateendDate:Date11CasualAcademictaxDeduction:BooleanpaymentNotification:String0..n0..nTimecardEntryday:Datehours:int10..n10..nTimecardhoursPerPeriod:int110..n0..n0..n0..nTask4(3marks)Writeausecasedocumentfortheusecase“ModifyPaymentMethod”.Pleaserefertotheexampleinthebookandspecifytheusecasename,briefdescription,flowofevents(bothbasicflowandalternativeflows),specialrequirements,preconditions,postconditions,andextensionpoints.Task4Answer:UseCaseSpecification

1 / 7
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功