class ControlCentre
This class is responsible for start-up of the client-server network. It provides an interface for users to add new clients to the network.
attributes
server: Server
controlPanel: ControlPanel
operation specifications
+ ControlCentre( )
-- constructor: creates a Server object; creates the control panel interface for adding new clients.
pre: none
post: A Server object has been created and assigned to server.
A ControlPanel object has been created and assigned to controlPanel.
class ControlPanel
This class provides an interface for users to add new clients to the network.
attributes
server: Server
client: Client
operation specifications
+ ControlPanel(server: Server)
-- constructor
pre: server not null
post: self.server = server.
A control panel interface is displayed, containing a function to add new clients.
+ attachClient( )
-- handles the add new client event and creates a Client object.
pre: none
post: A new Client object has been created, and added to the server’s list of
currently connected clients.
ControlCentre与ControlPanel类功能介绍
博客介绍了ControlCentre和ControlPanel两个类。ControlCentre类负责客户端 - 服务器网络启动,提供添加新客户端接口;ControlPanel类也提供添加新客户端接口,包含处理添加新客户端事件并创建Client对象的操作。
1140

被折叠的 条评论
为什么被折叠?



