EE308 Lab 9

sunshine1211111 sunshine1211111 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

LAB 9 Object-oriented Modeling and Design with UML

 

Name:

Zejing.fang

MU ID:

19105274

FZU ID:

831901203

 

 

(i) List some actors that interact with this system. Explain the relevance of each actor.

Your Answer:

 

Actor:Professional anchors,such as many celebrities and some big companies’ executives ,who need to supervise the content of merchants' live broadcast to comply with regulations, and also supervise the legality of merchants' goods sold

Actor:Merchants,who apply for livestreaming permission from the administrator and sell items to customers on the livestreaming platform

Actor:Customers,who are watching the live broadcast and buying the goods through the Live-streaming sale system.

 

 

 

 

 

 

 

 

 

 

(ii) Prepare a use case diagram for this system.

Your Answer:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(iii) Prepare a normal scenario for each use case. (i.e. describe each use case in words)

Your Answer:

Register: anchors and customers need to register their accounts before

using this system.

Login: anchors and customer Login, including account and password;

Exit: all of them can exit;

Watch the live broadcast: Customers watch live broadcast, including live broadcast links and product links;

Browse Products: Customers know some significant information, including prices, live links,expression,quality and so on;

Consult Customer Service: Ask for store information;

Purchase somthing: The decision of something to buy, including customer balance, product information;

Open a living: Enables live streaming, including examing the quality of living shows;

Show products: show the information of products , including price and so on;

Shopping guide: provide customer with some assists about products ;

Review the product: check the products , including price ,quality,expression, details about payment an so on;

Review speech content: check the Living information, including the speeches and frames,something about authenticity.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(iv) Prepare sequence diagrams or activity diagrams for primary scenarios. By the way, each scenario can be described by a sequence diagram or an activity diagram, but both diagrams must be used in this question.

Your Answer:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(v) Prepare a class diagram for this system. Explain which principles of object-oriented are applied in your design.

Your Answer:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(vi) Prepare state diagrams for primary classes.

Your Answer:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(vii) Write the skeleton code corresponding to the class diagram in C++, Java, Python, or C#.

Your Answer:


  1. class user
  2. {
  3. private:
  4.     string username;
  5.     string ID;
  6.     string password;
  7. public:
  8.  
  9.     void login(string a, string b){ 
  10.         while(getInformation)
  11.         {
  12.         if (it exist in database)
  13.          return list[a,b]
  14.         else
  15.          stop
  16.         }
  17.     }
  18.     bool getinformation(arrey){
  19.         if(it is compliant)
  20.        true
  21.         else
  22.        false 
  23.     }
  24. };
  25.  
  26. class customer
  27. {
  28. private:
  29.     string privilege;
  30. public:
  31.     string allowLiving(string merchant_ID)
  32.     {
  33.          if(no not allowed things)
  34.        return link;
  35.          else
  36.          return stop;  
  37.     }
  38.     void stopLiving(string link)
  39.     {
  40.          if(have not allowed things)
  41.        stop; 
  42.     }  
  43.     string allowLiving(string merchant_ID)
  44.     {
  45.          if(no not allowed things)
  46.        return link;
  47.          else
  48.          return stop;  
  49.     }
  50.     string allowselling(string product){
  51.          if(allowed)
  52.        return true;
  53.          else
  54.        return false;
  55.     }
  56. };
  57.  
  58. class customer
  59. {
  60. private:
  61.     double sum;
  62.     arrey star;
  63. public:
  64.     string viptag;
  65.     string perchat(string product)
  66.     {
  67.          if(have enough remaining sum)
  68.        return order num;
  69.          else
  70.        return hint;
  71.     }
  72.     string ask()
  73.     {
  74.        send information;
  75.        return information_back;
  76.     }
  77.     arrey star(product)
  78.     {
  79.        get in arrey star;
  80.     }
  81. };
  82. class merchant{
  83. public:
  84.      string Livinglink;
  85.      arrey products;
  86. private:
  87.       double changePrice(arrey products, int type)
  88. {
  89.          change num;
  90.          return num;
  91. }
  92.       string startLiving()
  93.       {
  94.             get link;
  95.             return link;    
  96.       }
  97.       string showlink(products)
  98.       {
  99.        while(i in products)
  100.        {
  101.              get link;
  102.              return link;
  103.        }
  104.       }
  105. };
  106.  
  107. class product{
  108. public:
  109.        double price;
  110.        string link;
  111.        int sales_Volume;
  112. };
  113. class form{
  114. public:
  115.       string products;
  116. };

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

...全文

相关推荐

EE-308 LAB4 final version.7z

这是本次实验的压缩包

晨起剪桃花

政府科技管理者如何高效评估科技成果的市场转化潜力?.docx

科易网基于AI模型+行业大数据,在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,推出科技创新领域的AI+工具与数智化解决方案,推动科技创新与产业创新智能化发展。

BIZKEEN

产业园区运营负责人如何实现园区内创新资源的智能配置?.docx

科易网基于AI模型+行业大数据,在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,推出科技创新领域的AI+工具与数智化解决方案,推动科技创新与产业创新智能化发展。

BIZKEEN

科技中介服务机构在为中小企业提供技术对接服务时,如何解决信息盲区与匹配低效问题?.docx

科易网基于AI模型+行业大数据,在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,推出科技创新领域的AI+工具与数智化解决方案,推动科技创新与产业创新智能化发展。

BIZKEEN

电力系统风储联合一次调频仿真模型(Simulink仿真实现)

内容概要:本文提供了“电力系统风储联合一次调频仿真模型”的Simulink仿真实现方案,系统性地构建了风电与储能系统协同参与电力系统一次频率调节的动态仿真模型。该模型深度融合风力发电的波动性特征与储能系统的快速响应能力,设计了联合调频控制策略,通过Simulink平台实现了对电网频率扰动的精细化仿真分析。内容涵盖风储功率协调分配、逆变器控制(如VSG、下垂控制)、中点电位平衡、正负序分离、电网前馈补偿等关键技术模块,重点考察控制逻辑架构、关键参数整定及系统在动态工况下的频率响应性能,旨在验证风储联合系统在提升低惯量电网频率稳定性和调频效能方面的可行性与优越性。; 适合人群:具备电力系统分析、自动控制理论及新能源并网技术基础,熟练掌握Simulink/MATLAB仿真工具,从事电力系统稳定控制、新能源集成、储能应用等方向研究的研究生、科研人员及电力行业工程技术人员。; 使用场景及目标:①深入探究风电与储能系统在电网一次调频中的协同控制机理与能量管理策略;②对比分析不同控制算法(如下垂控制、VSG、MPC等)对频率调节效果的影响;③支撑学术论文复现、科研项目仿真验证及新型电力系统工程方案的前期可行性研究。; 阅读建议:建议结合电力系统频率控制相关经典文献与最新研究成果,逐步调试模型中的控制参数,重点关注风储出力协调性、控制延时、响应速度及弱电网条件对整体调频性能的影响,推荐通过多场景对比仿真以深化对系统动态行为的理解。

荔枝科研社
评论
收藏 已收藏
分享
返回顶部