program代写、Java/C++设计编程代做
Project 1: Specification for Automail
Background: Automail
Delivering Solutions Inc. (DS) has recently developed and provided a Robotic Mail Delivery system
called Automail to the market. Automail is an automated mail sorting and delivery system designed to
operate in a large building that has a dedicated mail room. The system offers end-to-end receipt and
delivery of mail items within the building and can be tweaked to fit many different installation
environments.
The current version of the system supports delivery of letters using one specific delivery mode where
every robot operates with the same behaviour. DS would like the system to also handle parcel
delivery, and to support exploring alternative delivery modes which specialize the robot behaviour.
The Automail System
The building the system operates in (see Figure 1) will have a number of floors each with the same
number of rooms. Below the rooms is a mailroom (row 0), to the left and right are robot tracks (column
0 and column roomsperfloor+1) respectively.
Figure 1: Automail Building Layout (6 floors by 5 rooms) with Robots
The mail items are letters which are effectively weightless, or parcels which have a given weight. All
mail items are addressed to deliver within the building to an room identified by combination of Floor
and Room number. The current system handles only delivery of letters.
The Automail system consists of two key components:
A MailRoom subsystem which holds mail items after their arrival at the building’s mail room. The
mail roomdecides the order in which mail items should be delivered.
Delivery Robots which take mail items from the mail room, or from other robots, and deliver them
throughout the building. The currently used robot (see Figure 2) has a backpack-like container for
carrying mail items. Carrying capacity of the robot is weight limited. As such the total weight of
carried items cannot exceed robot.capacity. An installation of Automail can manage a team of
delivery robots of configurable size.
.Figure 2: Artistic representation of one of the DS robots
DS provides a simulation subsystem to show that Automail can operate to deliver mail items within the
building. The subsystem runs a simulation based on a property file, generates an output trace of
execution and outputs the average time to deliver a mail item.
The simulation subsystem uses a clock to simulate operations of the mail room and robot subsystems.
Broadly speaking, for each tick of the clock (i.e. one unit of time), the mail room subsystem will load
items to a robot if there are robots available at the mailroom; and the robots will either move to deliver
an item (if there are items in their backpack), deliver an item, or move to return to the mailroom (if all
items are delivered). Currently, the robots offered by DS will take one unit of time when
moving one step (i.e., moving up or down one floor in a building, or left or right one across the
building).
delivering items at one apartment once there.
transferring items from one robot to another.
being loaded and moved out of the mailroom.
The simulation completes only after all items have been delivered.
Unfortunately, the staff who designed and implemented the Automail simulation did not consider
maintainability and future enhancements.
Current operating mode: Cycling
This mode has been implemented in the current simulation. It has the robots moving clockwise
through the building delivering mail items, as illustrated in this video
(https://canvas.lms.unimelb.edu.au/media_attachments_iframe/20429677?type=video&embedded=true) .
The Cycling mode (MODE=cycling) has every robot operating with the same behaviour. All items a
robot carries for delivery will only ever be for a single floor at a time.
Initially: All robots (robot.number>0) start in the MailRoom.
Ongoing (each timestep):
1. If there are any items and robots in the mailroom, the mailroom will Load a robot with items for one
floor (the floor with the earliest remaining delivered item), and move it to the bottom left (0, 0).
2. If a robot has items to deliver and has not reached its target floor, it will Step up.
3. If a robot has an item to deliver it will Step towards the left-most location to which its items are
addressed.
4. If a robot has reached its delivery location and not yet delivered, it will Deliver.
5. If a robot has no items to deliver, it will Step towards the bottom right (0, building.roomsperfloor+1).
6. If there is a robot at bottom right (0, building.roomsperfloor+1), it will Return to the mailroom.You can assume that the Automail Cycling mode has been well tested and performs reasonably well,
though only for letters.
Proposed operating mode: Flooring
This mode has not been implemented in the current simulation; you and your team need to add this. It
involves having one robot per floor delivering on that floor, with two robots (one at each end) bringing
mail items up to the other robots for delivery, as per this video
(https://canvas.lms.unimelb.edu.au/media_attachments_iframe/20429779?type=video&embedded=true) .
The Levels mode (mode=FLOORING) always involves exactly building.floors+2 robots
one for each floor, each of which exhibits floor behaviour, and
one for each of the leftmost and rightmost columns, each which exhibits column behaviour.
Floor robots only ever move on their floor and column robots only ever move on their column and in/out
of the mailroom.
Floor Behaviour:
Initially: the robot is at Room 1 on their floor.
Ongoing (each timestep):
1. If the robot has mail items, continue delivering them (ignore column robots).
2. If the robot is next to a waiting column robot (i.e. with items for this floor), Transfer them from
the column robot to this robot and start delivering from that end of the floor towards the other
end. (Note: as all robots have the same capacity and the floor robot is carrying nothing, all items
will be transferable.)
3. If the robot is heading for a waiting column robot, continue moving towards that robot.
4. If a column robot is newly waiting, start heading towards it. If two column robots are newly
waiting, move towards the one with the earliest arrival item, or the left one if the arrival time is
the same.
5. If the robot has no items and no column robots are waiting for this floor, then do nothing.
Column behaviour:
Initially: the robot is in the mailroom and is assigned to the left or right column (one robot to each).
Ongoing (each timestep):
1. If the robot is in the mailroom and the mailroom has items, Load the robot (as per Cycling) and
move it to its floor 0, otherwise do nothing.
2. If the robot is loaded for delivery, and not at the destination floor move towards the destination
floor.
3. If the robot is at the destination floor, and the floor robot is adjacent, Transfer from this robot to
the floor robot.
4. If the robot has transferred, head towards floor 0.
5. If the robot arrived back at floor 0, enter the mail room.
All items a robot carries for delivery will only ever be for a single floor at a time.
Robot Operations:
Step: move one floor or apartment towards the destination. Only one robot can be on a square at a
time. If the destination square is blocked, the robot does nothing.Load: the load destination is the floor of the item in the mailroom with the earliest arrive time. Load
the robot with all items destined for that floor which can be transferred to the destination robot,
subject to load. All letters are transferred, and parcels are transferred in order of "earliest arrival
time package which will fit within weight capacity".
Transfer: all items which can be transferred are move from the source robot to the destination
robot, subject to load. All letters are transferred, and parcels are transferred in order of "earliest
arrival time package which will fit within weight capacity".
Return: all items are transferred from the robot back to the mailroom.
Deliver: the item is removed from the robot and the elapsed time since arrival used in the item
statistics.

Your Task
To expand the usage and trial different modes of operation, DS wants to update their Automail to
support (1) parcels, and (2) the FLOORING operating mode.

The Base Package
You have been provided with a zip file containing source code for the current version of the
system, including an example property file.
(https://canvas.lms.unimelb.edu.au/courses/187398/files/20444343?wrap=1)
(https://canvas.lms.unimelb.edu.au/courses/187398/files/20444343/download?download_frd=1) This
provides the basis for you to implement the additions described above.
Please carefully study the provided code and ensure that you are confident you understand how it is
set up and functions before continuing. Note that you do not need to understand all aspects, just those
relevant to the changes you need to make. If you have any questions, please make use of the
discussion board.
Note: The simulation will run and generate mail items at random times and with random weights,
based on a seed. You can configure this in the property file (test.properties by default). Any integer
value will be accepted, e.g. 30006.

Configuration and Project Deliverables
(1) Extended Automail: As discussed above, and for the users of Automail to have confidence that
changes have been made in a controlled manner, you are required to preserve the Automail
simulation’s existing behaviour. Your extended design and implementation must account for the
following:
Preserve the existing behaviour of the system for configurations where the additional capabilities
are turned off in the configuration file (properties), i.e. mail.parcels=0 and MODE=cycling. Note that
“preserve” implies identical output. We will use a file comparison tool to check this.
Add the handling and delivering behaviour for parcels (including robot capacity limitation).
Add the new FLOORS mode of delivery.Configurable building size and number of robots (robot.number for cycling mode or
building.floors+2 for flooring mode).
It's recommended that you understand the high-level design of current system so that you can
effectively identify and update relevant parts. You don't need to refactor the whole system, just those
parts necessary or helpful to making the required changes.
(2) Report: In addition to the extended Automail, DS also wants you to provide a report to document
your design changes and justification of your design. You should also comment on how easy your
changes make it to add further mail items (beyond letters and parcels), or further delivery models
(beyond cycling and flooring) in the future. Your report should include:
a design class diagram which shows all of the changed design elements in your submission (at
least - it can show more than just the changes but doesn't need to show all unchanged elements).
a sequence diagram which illustrates the behaviour of a floor-assigned robot in FLOORING mode,
for appropriate scenario of your choosing.
More detail of the report is available on the LMS submission page.
Note: Your implementation must not violate the principle of the simulation by using information that
would not be available in the system being simulated. For example, it would not be appropriate to use
information from the simulation package (e.g., mail items which have not yet been delivered to the mail
room). We also reserve the right to award or deduct marks for clever or very poor code quality on a
case-by-case basis outside of the prescribed marking scheme.

Testing Your Solution
We will be testing your application programmatically, so we need to be able to build and run your
program without using an integrated development environment. The entry point must remain as
“Main.main()”. You must not change the names of properties in the provided property file or require the
presence of additional properties.
Note: It is your team’s responsibility to ensure that the team has thoroughly tested their software
before submission.
Here are sample outputs for each of the two provided property files:
test.properties (https://canvas.lms.unimelb.edu.au/courses/187398/files/20494343?wrap=1)
(https://canvas.lms.unimelb.edu.au/courses/187398/files/20494343/download?download_frd=1)
testShort.Properties (https://canvas.lms.unimelb.edu.au/courses/187398/files/20494342?wrap=1)
(https://canvas.lms.unimelb.edu.au/courses/187398/files/20494342/download?download_frd=1)

Submission
Detailed submission instructions will be posted on the LMS. You must include your team number in all
your pdf submissions, and as a comment in all changed or new source code files provided as part of
your submission.

热门主题

课程名

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
站长地图