UML Modeling for Class calling another class in Class Diagram and Sequence

In my application, business delegate is calling Session Facade through business interface. Session Facade is implementing business interface which includes my application business processes.

In my class diagram, I am showing business delegate, business interface and Session Facade.

What kind of relationship should be shown between

1. business delegate and business interface

2. business delegate and Sesion Facade

I am not very sure wthether relationship mentioned above are really need to show.

What should be calling sequence in sequence diagram. Do I really need to show business interface in callling sequence of sequence diagram or I can show business delegate is calling directly to Session Facade.

Thanks

San

[776 byte] By [San4Ua] at [2007-10-2 23:40:53]
# 1

> In my application, business delegate is calling

> Session Facade through business interface.

The delegate is interacting with what exactly when you say "through"?

If the delegate uses an interface then there is an association.

If it is getting an interface implementation from some other object then there is an association there.

Given the above then there is no relationship between the implementation of a interface and the delegate however.

> Session Facade is implementing business interface which

> includes my application business processes.

The implementation would have associations to the objects that it is providing a facade for.

jschella at 2007-7-14 16:24:15 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
Business interface is implementated by the Session Facade and business delegate calls the method of session facade thru this interface.Under such situation do I need to show relation between BD and SF or showing the realtionship between BD and business interface is enough ?
San4Ua at 2007-7-14 16:24:15 > top of Java-index,Other Topics,Patterns & OO Design...
# 3
I am not sure what you mean but it is important that if there is no association then you don't show it.And if a class is using an interface (not an implementation) then there is no association to the implementation.
jschella at 2007-7-14 16:24:15 > top of Java-index,Other Topics,Patterns & OO Design...