class diagram design problem

hi everyone,

I am doing an application in java and it is not web based, it is a client and server based application.

If i want to draw a class diagram for a client and server based application, would i only draw the client side or both sides?

i am a little confused, because when i read about class diagrams there are no such examples of server and client class diagrams.

thank you

[412 byte] By [Java12a] at [2007-10-2 17:52:38]
# 1
Both sides, since client and server are separate objects.%
duffymoa at 2007-7-13 19:11:01 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
hi,thanks for the reply. sory i am a little new to class diagrams, I am doing a chat system, so do i have to model them seperately or as one diagram.thank you
Java12a at 2007-7-13 19:11:01 > top of Java-index,Other Topics,Patterns & OO Design...
# 3

UML is about communication. You can make the mother of all class diagrams that can only be displayed realistically on a screen without a printing plotter (think of a huge data model you have seen stapled on a wall). Or you can create a number of smaller diagrams containing a single element each.

Obviously, a happy medium lies between these two ends. Choose whatever level of 'business' on the diagram you feel is appropriate. In terms of modelling client and server, yes there are diagrams that do this.

> Class diagram : models individual classes. Your view and controller classes will be primarily client. Your model classes will primarily be shared. Your data access and some controller classes will be primarily server.

> Deployment diagram: shows the interaction between nodes (in this case, client, server and database)

- Saish

Saisha at 2007-7-13 19:11:01 > top of Java-index,Other Topics,Patterns & OO Design...