Skip to main content
deleted 181 characters in body
Source Link

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.

The user can perform the following actions:

  • Connect & Disconnect
  • Display a list of currently connected users
  • Send a new message
  • Display current messages in a list

My problem is that I don't know how to incorporate the Server class. Where would one put it in the diagram?

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.

The user can perform the following actions:

  • Connect & Disconnect
  • Display a list of currently connected users
  • Send a new message
  • Display current messages in a list

My problem is that I don't know how to incorporate the Server class. Where would one put it in the diagram?

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.

My problem is that I don't know how to incorporate the Server class. Where would one put it in the diagram?

Notice removed Canonical answer required by John Smith
Bounty Ended with Christophe's answer chosen by John Smith
deleted 980 characters in body
Source Link

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.

The user can perform the following actions:

  • Connect & Disconnect
  • Display a list of currently connected users
  • Send a new message
  • Display current messages in a list

I have finally come up with the following UML class diagram:

enter image description here

The client application communicates with a server application. Every communication with the Server happens through the ConnectionManager. getReceptionTime()returns a string indicating a timestamp when the Server received the actual message. connect() sends a Message object to the Server.

My problem is that I don't know how to incorporate the Server class. Where would one put it in the diagram?

EDIT: Message class,

getSender() - returns a User object. 
setSender(User) - sets the User as sender of the Message.
getReceptionTime() - returns a timestamp when the message was delivered to the Server. 
getTimeOfDelivery() - returns a timestamp when the message was delivered to the user.
getContents() - returns an object, this object includes the message content.

Sequence diagram: THE USER CONNECTS THE CLIENT TO THE SERVER enter image description here

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.

The user can perform the following actions:

  • Connect & Disconnect
  • Display a list of currently connected users
  • Send a new message
  • Display current messages in a list

I have finally come up with the following UML class diagram:

enter image description here

The client application communicates with a server application. Every communication with the Server happens through the ConnectionManager. getReceptionTime()returns a string indicating a timestamp when the Server received the actual message. connect() sends a Message object to the Server.

My problem is that I don't know how to incorporate the Server class. Where would one put it in the diagram?

EDIT: Message class,

getSender() - returns a User object. 
setSender(User) - sets the User as sender of the Message.
getReceptionTime() - returns a timestamp when the message was delivered to the Server. 
getTimeOfDelivery() - returns a timestamp when the message was delivered to the user.
getContents() - returns an object, this object includes the message content.

Sequence diagram: THE USER CONNECTS THE CLIENT TO THE SERVER enter image description here

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.

The user can perform the following actions:

  • Connect & Disconnect
  • Display a list of currently connected users
  • Send a new message
  • Display current messages in a list

My problem is that I don't know how to incorporate the Server class. Where would one put it in the diagram?

added 164 characters in body
Source Link

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.

The user can perform the following actions:

  • Connect & Disconnect
  • Display a list of currently connected users
  • Send a new message
  • Display current messages in a list

I have finally come up with the following UML class diagram:

enter image description here

The client application communicates with a server application. Every communication with the Server happens through the ConnectionManager. getReceptionTime()returns a string indicating a timestamp when the Server received the actual message. connect() sends a Message object to the Server.

My problem is that I don't know how to incorporate the Server class. Where would one put it in the diagram?

EDIT: Message class,

getSender() - returns a User object. 
setSender(User) - sets the User as sender of the Message.
getReceptionTime() - returns a timestamp when the message was delivered to the Server. 
getTimeOfDelivery() - returns a timestamp when the message was delivered to the user.
getContents() - returns an object, this object includes the message content.

Sequence diagram: THE USER CONNECTS THE CLIENT TO THE SERVER enter image description here

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.

The user can perform the following actions:

  • Connect & Disconnect
  • Display a list of currently connected users
  • Send a new message
  • Display current messages in a list

I have finally come up with the following UML class diagram:

enter image description here

The client application communicates with a server application. Every communication with the Server happens through the ConnectionManager. getReceptionTime()returns a string indicating a timestamp when the Server received the actual message. connect() sends a Message object to the Server.

My problem is that I don't know how to incorporate the Server class. Where would one put it in the diagram?

EDIT: Message class,

getSender() - returns a User object. 
setSender(User) - sets the User as sender of the Message.
getReceptionTime() - returns a timestamp when the message was delivered to the Server. 
getTimeOfDelivery() - returns a timestamp when the message was delivered to the user.
getContents() - returns an object, this object includes the message content.

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect.

The user can perform the following actions:

  • Connect & Disconnect
  • Display a list of currently connected users
  • Send a new message
  • Display current messages in a list

I have finally come up with the following UML class diagram:

enter image description here

The client application communicates with a server application. Every communication with the Server happens through the ConnectionManager. getReceptionTime()returns a string indicating a timestamp when the Server received the actual message. connect() sends a Message object to the Server.

My problem is that I don't know how to incorporate the Server class. Where would one put it in the diagram?

EDIT: Message class,

getSender() - returns a User object. 
setSender(User) - sets the User as sender of the Message.
getReceptionTime() - returns a timestamp when the message was delivered to the Server. 
getTimeOfDelivery() - returns a timestamp when the message was delivered to the user.
getContents() - returns an object, this object includes the message content.

Sequence diagram: THE USER CONNECTS THE CLIENT TO THE SERVER enter image description here

added 399 characters in body
Source Link
Loading
Notice added Canonical answer required by John Smith
Bounty Started worth 50 reputation by John Smith
deleted 44 characters in body; edited title
Source Link
Christophe
  • 82.2k
  • 11
  • 136
  • 202
Loading
edited title
Link
Loading
added 102 characters in body
Source Link
Loading
fixed type and updated tags to fit question
Source Link
Loading
added 46 characters in body
Source Link
Loading
added 185 characters in body
Source Link
Loading
added 118 characters in body
Source Link
Loading
Source Link
Loading