代写SOFT3202 /代写R编程、R代写

SOFT3202 / COMP9202
Design Pattern Assignment - Source Code
Background
It’s been a while since your last work with Permanent Assurance Company, and the
FEAA/ERP system you helped them with has not been treated well. The company
has taken over the Very Big Corporation of America, and in the process the system
has seen significant change and growth. Many consultants have come and gone on
the system, and there have been several “rush” jobs that focused on shipping code
that worked and not on code that worked (or was designed) well.
The end result is a system that works… sort of. All of the functional requirements
are met, and the system mostly delivers what the newly named Crimson Permanent
Assurance (CPA) front-end operators need. However, it is very slow in some places
(causing non-functional tests to fail), and any time CPA asks someone to add a new
feature or fix the lag issues they run away in terror.
CPA have now asked you to come in and fix one of their key components, but since
money is rather tight they have placed restrictions on your work:
• Several ‘module borders’ in the system exist – you may not change anything
beyond the module border. These modules are pretend abstractions of legacy
software the organisation has lost the source code for and does not have the
time or money to redevelop.
• CPA has the existing API for these modules and has given you a 'pretend'
version of each module for each to test with.
• Your solution will be run through a test suite (provided to you as well) to ensure
the module interactivity remains intact at the end, and to ensure your delivered
code still responds in precisely the same functional way as before.
Thankfully, the module you will be redeveloping was behind a façade just like your
original design – so besides a few public interfaces you can change anything you
like about its internal workings without worrying about the view not being able to
handle the changes.
You should use proper red-green-refactor practices when refactoring this code. The
code currently passes function-based testing and should continue to do so the
entire time - no breaking changes!
Work Required
You must dig into and correct the design and implementation of the FEAA package
along with all involved classes. CPA has observed the following key issues they
would like you to investigate and solve:
• The system uses a LOT of RAM. Analysis has indicated this is due to the Report
class, which stores a lot of data. CPA would like you to solve this RAM issue
somehow, without breaking the existing use of the Report interface. ReportImpl
has been included in your module scope to assist with this, but ReportDatabase
is a fake façade on a remote database that you cannot change.
• There are several types of accounting service Orders. The current solution for
these orders is to create a new class for each type (based on work type e.g.
audits or day-to-day work, whether the order is for priority client , and whether
the order is a one off or regularly scheduled work). The full system has 66 * 2 * 2
of these classes (264 order classes!), with 8 of these (2*2*2) provided to you as
an example – CPA would like you to find a way to reduce this class load without
breaking the existing Order interface.
• The current method of handling client contact methods is quite bulky –
CPA would like you to streamline this somehow.
• Any time Clients are loaded from the database, the system lags for a long time.
The database issues themselves have been deemed too expensive to fix, but
perhaps you can partially mitigate this with the software somehow?
• Because the Report object captures data without any consistent primary key,
and because people have duplicated object names and versions, any time
reports need to be compared for equality we have to remember to check many
fields. CPA would like you to make this process simpler.
• The Order creation process involves a lot of slow database operations. CPA
would like you to simplify this process (especially the database lag while the
employee is entering data) without breaking the Order interface.
• The current system is mostly single-threaded. There has been some work on the
database side to allow multithreading, but as yet the FEAA module does not
have any threading besides the main one. CPA would like you to use
multithreading to allow employees to use the system for other things while slow
database processes happen in the background.
As well as these they would like you to clean up the code and document where you
believe it is necessary (for both the existing code and your changes).
Detailed Allowed Scope
• The ONLY package you are allowed to modify is au.edu.sydney.cpa.erp.feaa
and contents (feaa.ordering and spfea.reports) - these are the 'in-scope'
classes. No, it doesn't make much sense for ordering and reports to be inside
feaa - this is so it is easier for you to know what you are and aren't allowed to
change.
• You may not modify feaa.reports.ReportDatabase (it's not the real database and
modifying this won't help CPA).
• You may not replace the uses of auth, contact, database, ordering, or view
packages - the test suite will enforce some of this
• You may add, remove, merge, change, etc any of the in-scope classes, so long
as the public api of the feaa package remains the same - e.g. FEAAFacade must
still exist in the same way so the view can call its methods, etc.
Assessment Notes
• You will be assessed on your code quality, your use of design patterns, and
keeping to the requirements of the client.
• The most important thing to remember is don't break production code - If your
code submission does not pass the test suite provided the maximum mark
will be 50% if all other requirements are perfect. Run the tests after each
small change you make (that's what they're there for) and use version control to
ensure you are able to roll back any breaking changes you can't fix.
• There will be a first demo due at the end of Week 11 for you to show a minimum
of 1 of the above problems having been solved, and the code still passing the
provided test suite – remember Red-Green-Refactor, you should not make
sweeping changes to existing code without checking it passes tests as you go.
• There will be a final demo in partway through Week 13 for you to show however
many problems you have solved and again with your code passing the test suite
- at this point you may not edit the code further and should focus on your written
Report.
• There are many ways to solve the given problems – for best marks you should
prioritise methods that use the design patterns you have been taught in this unit.
• Marking will be focused on your ability to solve these problems with good,
clean, patterned code, over and above solving ‘all’ of the problems. You will get
much better marks for solving 50% of the problems completely and with
good solutions than you will for solving 100% of the problems with poor
quality code. Ensure you focus your efforts!
o The multi-threading issue in particular you should not attempt until all other
issues have been solved adequately
o There will be times when the modules you can’t change force you to do
things that break OOP design principles – this is perfectly normal. Make sure
it is actually required, then document where and why you have done so.
Patterns may help you limit the negative effects this has on the rest of your
code.
• Ensure you use versioning software so you can roll-back any changes that break
tests when it comes time to demo and submit.
Resources
CPACodebase.zip
Submission Requirements
• You must submit a zip folder containing your complete FEAA application as
a Gradle Project.
• To achieve the compilation run marks your project MUST compile and test
properly with 'gradle build' without requiring any modification
o This means any locally stored dependencies you decide to add must be
included in the zip folder and given a relative reference in your build.gradle -
in general avoid this as work the libraries do for you will not earn you marks
o Code which does not compile and run is likely to be penalised in other areas
as well (e.g. you haven't used design patterns to solve issues well if your
code does not compile).
• When running your code through the test suite for marking the 'out of scope'
classes such as TestDatabase or the test suite itself will be swapped out with
known original sources - be careful not to edit these accidentally as your edits
will NOT carry over and this may cause your code to fail testing.
• You must include a readme file (a simple text file, either .txt or .md) listing what
CPA issues you have solved and where in the code you did so. If you have made
any assumptions in your work, or if your code requires anything in particular (like
external dependencies/libraries) you should list them here also.
Final Notes
• This is a new codebase with some complexity. As with any such code, there is
a high chance of functional bugs existing in the codebase or test suite. If
you do notice a functional bug, please post this on Ed - either a fix will be given
and the code updated, or you will be allowed to ignore it (non-functional bugs
are intended and you should fix these yourself).
• The test suite is there to guide you, not guarantee correctness. It is entirely
possible to code something that directly hits the limited test cases specified but
would fail if those test cases were changed to anything else - this will not yield a
good result. Treat the combination of the test suite, the existing code, and the
(sparse) comments as the specification for this code - if anything is unclear you
should ask on Ed before changing any behaviours you might notice through the
facade.

热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图