UML Structured class with utility parts?



I'm trying to sort out what must be a simple situation.

I want to have a "module" of "utilities". The utilities are simply things
like stacks, lists, those kinds of things. The idea of the "module" is
simply that they are all in one place -- like a library, I suppose.

Then, to build my application, I want to represent application modules as
structured classes or components.

These components will make use of the utilities. They'll have stacks inside
them, etc.

What I'm trying to sort out in my head is "where things are" and "what
actually exists physically."

For example, my application module, when actually instantiated in real code,
will presumably contain an instantiated stack. Or even two or three of them.

Does that mean that the "module" or "library" where my stack is defined
actually contains nothing, only the definition of the stack?

A colleague suggested that this might indeed be the case, that this is a
case where you use <<type>> rather than class for the stack. But I still
can't quite get my head around it.

And for that matter, how do I model the "library" where the stack is? I was
thinking simply a package, since it's really just a collection of utility
classes and not something with a real interface. In that case when I specify
a stack as a part, I would simply refer to the "stack that's defined in the
utilities package."

As I said at the beginning, I suspect it's not a very complicated situation
conceptually, but I'm not quite there yet. Can somebody provide
enlightenment?

Thanks,

John


.



Relevant Pages

  • Re: Fastest Date Sort
    ... With the QuickSort currently working in my app, I have to assume I'm not ... giving it anything that would cause this 'stack' overflow concern. ... >> Array of UDTs when the sort is completed. ...
    (comp.lang.basic.visual.misc)
  • Re: Sorting Data that feeds into other formulas....
    ... So GL$12 will always refer to row 12, whatever you do with your data. ... Then, when you sort, the reference will "follow" the data to the new cell. ... > Ranking'!GL$14+'Rep Stack Ranking'!GL$40 ...
    (microsoft.public.excel.misc)
  • Re: new open source program: awke
    ... built-in sort in the Collection classes and a few others. ... over the last few years for performance testing exercises in Java and C ... language inherent function call stack or implement your own stack to ... just to name two common ones that are easy to implement. ...
    (comp.lang.awk)
  • Re: hardware errors, do C and Forth need different things in hardware?
    ... hardware is to people who are thinking C software ... need or want the sort of complications that this code avoids. ... If it confuses solutions for bugs it will introduce REAL bugs. ... back from the stack is greater than the size of the stack. ...
    (comp.lang.forth)
  • Re: Is it possible to use the value of the PROGRAM ID within the source code?
    ... as a "call stack". ... "alphanumeric literals" or do you include "alphanumeric data items"?) ... It may be *common* to use some sort of fixed ... architectures the concept of "fixed-length words" as I understand the ...
    (comp.lang.cobol)