Re: How to express conditional dependency between components in UML?
- From: "kirkk" <kirk@xxxxxxxxx>
- Date: 27 May 2005 10:51:27 -0700
A component diagram is a static diagram. This translates into design
time or compile time relationships. Since there is no compile time
relationship between CompA and CompB, this wouldn't be represented on a
component diagram. That's why there is no good way to represent it.
However, there certainly is a run-time relationship between CompA and
CompB. But UML doesn't have a diagram that allows you to model run-time
relationships between components.
In your situation, I'd suggest using a note with a simple description.
Anyone reading your diagram will understand the note. Using some other
notation may only cause confusion since there is no good notation to
use for this in UML.
Kirk Knoernschild
www.kirkk.com
www.extensiblejava.com
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
.
- Follow-Ups:
- 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: Intellisense and the psychology of typing
- Next by Date: Pattern for data conversion between versions
- Previous by thread: Re: 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
|