首页 > 其他分享 >SWEN30006_2024_SM2 Specification for Automail

SWEN30006_2024_SM2 Specification for Automail

时间:2024-09-04 17:49:18浏览次数:8  
标签:floor items Specification robot robots 2024 Automail mail

Project 1: Specification for Automail: Software Modelling and Design (SWEN30006_2024_SM2)

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 weightAll 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代 写SWEN30006_2024_SM2 Specification for Automail 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 and Design (SWEN30006_2024_SM2) 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 design 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.

 

标签:floor,items,Specification,robot,robots,2024,Automail,mail
From: https://www.cnblogs.com/qq--99515681/p/18397032

相关文章

  • 20240904:字符串选做
    P4555[国家集训队]最长双回文串题意:给定字符串\(s\),找到他最长双回文串\(t\)的长度。双回文串定义为存在一个\(i>1\)使得\(t[1,i)\)和\(t[i,n]\)都是回文串。\(\verts\vert\le10^5\)。二分哈希求出所有回文中心的半径,设以\(i\)为中心的最长回文串为\([l_i,......
  • 2024.7.5-2024.7.20 HA省学会集训游记(焦作一中)
    这是一篇长篇小说DAY1除了DAY4-DAY5个别内容以外,这些都是补的,但是全写完有太多了qwq,挑题写了树状数组和线段树基础很多都是一些模板题,太模板的题不再做太多解释题目:P4062P6619P3688P3157P10497P3374P3368P4223P10589P10688CF1667BP10463SP1716CF718CCF446C......
  • 抢先看:2024云栖大会体验攻略
    这是一场「AI」奇妙之旅。  2024云栖大会定档9月19日!期待与你在杭州·云栖小镇共度一场为期3天的科技盛会  三日主论坛400+分论坛与并行话题4万平米智能科技展区  免费领取云栖大会门票  怎么看、怎么玩、怎么逛超长干货攻略奉上,请查收⬇️⬇️⬇️......
  • 每日搜索论坛总结:2024年8月30日
    以下是今天在搜索论坛上发生的事件回顾,通过搜索引擎圆桌会议和其他网络搜索论坛的视角。Yelp起诉了Google,搜索营销行业对此感到好笑。Google为GoogleAds推出了新标签诊断和同意管理设置。Google表示不会在页面上计数文字或链接。Google正在统一Google商务资料和Google本地服......
  • 程序员入门大模型,2024年值得关注的畅销书单!
    文章目录前言大模型入门01《GPT图解大模型是怎样构建的》02《大模型应用开发动手做AIAgent》03《ChatGPT原理与应用开发》04《AIGC自动化编程:基于ChatGPT和GitHubCopilot》05《生成式AI入门与AWS实战》人工智能基础01《动手学深度学习(PyTorch版)》02《深度学......
  • 20240907_051745 python 正则表达式 常见元字符
    •.:匹配任意单个字符•\d:匹配数字(等价于[0-9])•\w:匹配字母、数字、下划线(等价于[a-zA-Z0-9_])•\s:匹配空格、制表符、换行符等空白字符•^:匹配开头•$:匹配结尾•*:匹配前面的字符零次或多次•+:匹配前面的字符一次或多次•?:匹配前面的字符零次或一次•[]:匹配方括......
  • 20240907_061745 python 正则表达式 re.match方法
    情况一从头匹配匹配成功的数据可以通过匹配的对象的group()方法获取关注一下匹配不成功的情况情况二从中间匹配......
  • 2024-09-04:用go语言,给定一个长度为n的数组 happiness,表示每个孩子的幸福值,以及一个正
    2024-09-04:用go语言,给定一个长度为n的数组happiness,表示每个孩子的幸福值,以及一个正整数k,我们需要从这n个孩子中选出k个孩子。在筛选过程中,每轮选择一个孩子时,所有尚未选中的孩子的幸福值都会减少1。需要注意的是,幸福值不能降低到负数,只有在其为正数时才能减少。我们的目标是......
  • 2024最新Java面试笔试题目分享
    1.java中IO流分为几种?字节流:InputStream、OutputStream字符流:Reader、Writer字节流是最基本的1.字节流可用于任何类型的对象,包括二进制对象,而字符流只能处理字符或者字符串;2.字节流提供了处理任何类型的IO操作的功能,但它不能直接处理Unicode字符,而字符流就可以。......
  • NOIP2024集训Day21 DP常见模型2 - 背包
    NOIP2024集训Day21DP常见模型2-背包A.[BZOJ4987]Tree树形背包dp先考虑几个显而易见的性质:选出的点一定是相邻的对于选出的点,如果从\(a_k\)再走回\(a_1\),那么就相当于每条边经过了两次由于题目没有包含\(dis(a_k,a_1)\),因此就相当于选出的点中的一条链可以只......