oop - What is the difference between "uses" and "depends upon"? -


in beginners guide dependency injection noticed the uml diagram distinguishes between "uses" , "depends upon".

since both require form of reference in class "uses" or "depends upon", wonder: difference between two?

check out blockquotes relationship types taken ibm rational software architect documentation.

"depends upon" means following:

a dependency relationship indicates changes 1 model element (the supplier or independent model element) can cause changes in model element (the client or dependent model element). supplier model element independent because change in client not affect it. client model element depends on supplier because change supplier affects client.

"uses" means following:

a usage relationship dependency relationship in 1 model element requires presence of model element (or set of model elements) full implementation or operation. model element requires presence of model element client, , model element presence required supplier. although usage relationship indicates ongoing requirement, indicates connection between 2 model elements not meaningful or present.

as read "usage" less strict "dependency".


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -