ee-308-lab9

Cwq_kirito Cwq_kirito 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
The Link Your Classhttps://bbs.csdn.net/forums/MUEE308FZ?category=0
The Link of Requirement of This Assignmentee-308-lab9-CSDN社区
The goal of this assignmentlearning UML
MU STU ID and FZU STU ID19103077——831901218

 

Requirement

1. Please issue your Lab Blog on CSDN.

2. The Link of your blog of this lab and This Lab Sheet (This Word File) must be submitted to Moodle, or you will lose the score of this Lab. (VERY IMPORTANT: You should submit TWO things)

3. Modeling must be done using professional tools.

4. You should EXPLAIN your diagrams in words if necessary.

 

Question

Live-streaming sale, through some Internet platforms, is a new way of service using live-streaming technology for close commodity display, consultation response, and shopping guide. Merchants can open their own live broadcast room, or employ professional anchors to recommend goods. At present, not only many celebrities flock into this field, but some big companies’ executives are also frequently involved. Please try to design a comprehensive live-streaming sale system.

 


Q1.

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

Your Answer:

The actors: seller, professional anchor, celebrity , executive, consumer.

Seller, an actor who intend to sell goods through the live streaming sale system.

Professional anchor, an actor who employed by sellers to host live shows.

Celebrity, an actor who also want to profit from live streaming system by selling goods or broadcasting.

Executive, an actor who participate in the live stream sale system.

Consumer, an actor who want to purchase goods through watching live shows on the live stream sale system.

 

 

 

 

 

Q2.

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

Your Answer:

 

 

 

Q3.

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

Your Answer:

Watch live show: Users can use software to open the system and watch live broadcasts.

Purchase goods: Users can buy goods after sign up their account and pay the money online.

Live show: Pushed by the anchors or the sellers to recommend goods.

Sell goods: The system has the channel to let consumers purchase the goods.

Consultation response: Questions consulted by consumers or who is interest in the goods, and sellers or anchors will solute these questions.

Shopping guide: The sellers and professional anchor will teach you how to buy their goods and how to use their goods.

Commodity display: In the studio, the sellers and anchors will display the outlook of the goods and the usage of it to facilitate audience to understand this goods.

 

Q4.

(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:

 

 

 

 

 

Q5.

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

Your Answer:

 

 

 

Q6.

(vi) Prepare state diagrams for primary classes.

Your Answer:

 

 

 

 

Q7.

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

Your Answer:

public class User

{

    private:

        string name;

        string password;

    public:

        string username;

        void login();

        void register();

        void exit();

};

public class consumer: public User

{

    private:

        void purchase();

    public:

        void watch live show();

        void consult();

        void pay money();

};

public class anchor : public User

{

    public:

        string password;

        int username;

    private:

        void living show();

        void guide shopping();

        void display goods();

};

public class seller: public User

{

    public:

        void update goods' informations();

        void Check();

        void employ anchor();

};

public class goods:

{

    public:

          string names;

          int price;

}

 

...全文

相关推荐

EE-308 LAB4 final version.7z

这是本次实验的压缩包

晨起剪桃花

EE308-Lab8-AlphaSprint-Day7

EE308-Lab8-AlphaSprint-Day7Feedback From Members1. Beichen, ZhouModulePersonal SummaryCode & Results2. Yuwei, JiangModulePersonal SummaryCode & Results3. Yifan, ZhuModulePersonal Summary4. Yifan, ShenModulePersonal SummaryCode & Results5. Shenk

调参侠鱼尾

【十万字拆解】从零开始实现GPT-2(完整版)

本文是一篇 14 万字、从零硬核实现 GPT 的保姆级指南。内容全面覆盖四个阶段:①从最基础的 Bigram 语言模型切入,跑通数据处理与训练闭环;②仿照 Transformer 架构,深度研究 Multi-Head Attention、残差网络、LayerNorm 及 Dropout 的底层数学与代码实现;③从零构建BPE 分词器,对齐 GPT-2 规范;④从头搭建 GPT-1/2 工业级预训练流程,包含混合精度、梯度累积等十余项硬件级工程调优,并在 AutoDL 算力平台上从0开始训练!适合所有层次!

Nicktsang19

【信息科学与工程学】【物理/化学科学和工程技术】知识体系073——电学基础04

​。

flyair_China

基于混合储能协调控制的三相并网逆变系统设计【附说明文档】

内容概要:本文针对含分布式电源的配电网在故障情况下的恢复问题,提出了一种将网络重构、孤岛划分与检修进度统一考虑的多时段优化模型。该模型以最小化网损和甩负荷惩罚为目标,综合考虑节点功率守恒、支路潮流、电压与容量限制、二阶锥松弛以及拓扑连通性等约束条件,利用混合整数二阶锥规划方法进行求解。通过引入虚拟流变量和大常数松弛技术,有效描述了供电片区的连通性与支路开断状态,避免了传统模型中因设置节点归属变量导致的变量规模膨胀问题。模型在IEEE33节点系统上实现了故障后多时段的重构与孤岛运行方案优化,并通过仿真展示了各时段的网络拓扑、电压分布和负荷恢复情况。文章还对模型的建模细节进行了深入评述,指出了当前实现中存在的简化与不足,如无功处理不完善、电压约束未区分失电节点、缺乏储能与开关操作成本等,并提出了相应的改进建议,为后续研究提供了方向。; 适合人群:电力系统自动化、智能电网及相关专业的研究生、科研人员及从事配电网故障恢复、分布式电源集成、优化调度等领域的工程技术人员。; 使用场景及目标:①用于研究含高比例分布式电源的主动配电网在故障条件下的韧性提升策略;②为实现网络重构与孤岛划分的协同优化提供建模参考;③适用于学术论文复现、课题研究建模与电力系统仿真教学;④目标是掌握基于二阶锥松弛与虚拟流的多时段混合整数规划方法在配电网恢复中的应用。; 阅读建议:建议结合文中引用的参考文献(如汤一达等、陈文兴等的研究)对比阅读,深入理解模型的理论渊源;在复现过程中重点关注虚拟流连通性、大常数松弛与二阶锥转换的实现机制;建议在现有模型基础上逐步加入负荷分级、储能动态、分布式电源出力调控等模块,以构建更贴近实际的完整故障恢复系统。

梦想科研社_研学
评论
收藏 已收藏
分享
返回顶部