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.