Re: How to express conditional dependency between components in UML?
- From: Antonio Santiago <d6522117@xxxxxxxxxxxxxx>
- Date: Fri, 27 May 2005 08:46:52 +0200
Petri J. Riipinen wrote:
Hi folks,
How would one express a conditional dependency between two components in UML (2.0) component diagram?
This is the situation: Component A (an executable) uses Component B (a DLL) by dynamically instantiating a class from it but only if certain programmatic parameter, PAR1, is set to value TRUE. The value of the parameter is stored into an .ini-file that is read by Component A on startup. If PAR1 is FALSE or missing, Component A doesn't need Component B at all. There is no static reference from Component A to Component B, everything is done dynamically.
Currently I just draw a dependency-link from Component A to Component B, but that doesn't exactly describe the conditional nature of the dependency.
Is there any guideline how to do this in UML or should I just use a note and explain the issue in the note?
- Pete
I dont know how :) but I think you can use OCL to express this type of "relations".
Bye.
-- ----------------------------------------------------- Antonio Santiago Pérez ( email: santiago<<at>>grahi.upc.edu ) ( www: http://www.grahi.upc.edu/santiago ) ( www: http://asantiago.blogsite.org ) ----------------------------------------------------- GRAHI - Grup de Recerca Aplicada en Hidrometeorologia Universitat Politècnica de Catalunya ----------------------------------------------------- .
- References:
- How to express conditional dependency between components in UML?
- From: Petri J. Riipinen
- How to express conditional dependency between components in UML?
- Prev by Date: Re: Types of constructors
- Next by Date: Re: Types of constructors
- Previous by thread: How to express conditional dependency between components in UML?
- Next by thread: Re: How to express conditional dependency between components in UML?
- Index(es):
Relevant Pages
|