栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

项目实战介绍----智慧宿舍,socket聊天室,关于前期输出的总结【Java养成】

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

项目实战介绍----智慧宿舍,socket聊天室,关于前期输出的总结【Java养成】

Java学习打卡:第二十天

内容导航
  • Java学习打卡:第二十天
    • 内容管理
        • 算法回顾
        • java项目分享
          • Socket聊天室
          • 智慧宿舍系统

Java养成计划(打卡第20天)

JAVA SE(夯实基础系列----Java初步)


内容管理

Hello,我是C风,最近和大家分享了许多基础知识,从最基础的变量,语法到面向对象中封装,继承,多态,后面还会分享一下反射机制,网络编程(TCP IP)以及设计模式

算法回顾

我之前分享的还有算法模块,一直写的都是递归与深搜,分治,关于普通的递归优化以及记忆化搜索我都写了,详细的步骤,主要就是看自变量与因变量,多个子支需要使用for循环,这个时候可以手动写一些回溯条件,比如八皇后中擦除标记,这里面还有一个记忆化和dp的经典例题----背包问题,真的十分金典,延伸出很多问题,比如采药,开心金明,这种问题核心就是在给定限制中获得最大价值,大家可以对接触一下,后面还是会按照模块来写其他的算法,比如二分,贪心,排序…(bfs and conclusion)

java项目分享

再谈谈JAVA,基本的框架有了,在JAVA SE广度的基础上,我现在在进行的second round review就是在广度的基础上加深深度,今天就先不继续分享chapter 6的内容,介绍一个项目吧,是我自己根据各种简单项目所思考的,这里我会分享两个,第一个是soker聊天室,第二个是智慧宿舍系统,首先我就来上需求文档和大概思路,(具体我会在后面抽时间上传资源)

Socket聊天室

主要基础:网络编程TCP/IP
自己撰写的需求文档

There are n clients that are not connected to the Server. When the first Client establishes a connection with the Server, and then the second Client establishes a connection with the Server, the Server is on the console
“XXX online” is displayed. When n clients establish connections with the Server and the n+1 Client establishes connections, the Server notifies other clients that XXX is online. ------ chat room broadcast mechanism
The IO stream is established. The clients are output streams for each other, and the Server is the carrier of message forwarding.
Server:
SeverSocket running on the server is responsible for:
1 Apply for a service port number from the system. The client uses this port number and IP address to connect to the system. The port number is generally taken between forty million, because the rest of the system has been bound to system applications and mainstream applications, the most commonly used is 8088.
2 Listens for the applied service port number. When a client attempts to establish a connection using this port number, SeverSocket creates a Socket on the server to establish a connection with the client. The server establishes multiple sockets for different clients using multi-threading.
Working module and process:
The server is initialized first, including applying for a port number, and creating a shared message set (map, key is the user name, value is the message, private chat return value, broadcast traversal value), and create the method of adding and deleting and sending messages

这里就是一个简单的需求文档,为什么要用英语呢,这是因为之前上课也是双语,并且越到后面会接触到越来越多的英语。这里的要求就是要分为服务器和客户端,客户端上线服务器就会通报,并且客户端可以通信,核心就是TCP,(预告:明天会分享一下这个知识)

智慧宿舍系统

Intelligent Dormitory System
Smart dormitory system is a tool dedicated to building smart dormitory and providing an effective smart campus for the modernization of dormitory management, including the dormitory licensing terminal, management platform and wechat message push. Dormitory management system campus dormitory building management, intelligent allocation of student beds, dormitory scoring, intelligent return to sleep assessment, visitor registration, one-button alarm and other functions, while realizing the modernization of dormitory management, to ensure the safety of student accommodation.
Dynamic display of score Dynamic display of score of dormitory, students can click on the end of the building board to view the score details, strengthen the construction of dormitory civilization.
Function is introduced
Real-time Scoring by Administrators
Unified scoring standards, the administrator board end of the direct scoring and submission, dormitory scores automatically updated, showing the latest scoring situation.
Weekly ranking
The top three dorms are displayed on the home page. Click to view the ranking of dorms in the whole school.
Visitor statistics
based on big data processing platform, comprehensive record and statistics, generate detailed visitor information.
Students go to bed and check their attendance
Student dormitory card terminal identity verification, realize the return to bed check-in, generate attendance assessment, display in the building card terminal and real-time push.
Dormitory Discipline Display
Instead of manual communication and paper Posting, dormitory discipline rules are displayed at the end of the building board so that students can check them at any time, which is convenient and accurate and strengthens dormitory management.

我来说明一下,这里要求实现管理员和用户登录,可以先简单实现管理员登录,并且这里不使用前端,但是也不能简单控制台输出,这里使用JAVA SE中的界面编程实现这个要求,多个界面。

说明一下,这两个项目都是使用界面编程 画出UML类图,使用MVC模式设计

今天没有什么内容,就只是记录一下这两个项目,到时候看情况要不要专门发文章来解读这两个项目,今天的分享就到这里~~

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/274689.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号