31
General Board / Re: Classes go in Class model or Component model?
« on: October 29, 2010, 01:22:13 am »
I use component diagram to depict the names of external interfaces and composite diagrams to show control and data flow interconnection between the subcomponent instances. I find these two representations, along with state charts, to be the most useful diagrams for design specification to be used for coding and maintenance.
I use class diagrams while figuring out the decomposition but a class diagram tends to be a temporary document for me. The complete details of a class are more easily expressed in my target language (C++) than in UML. It is easier to express the details, compile and then import the detailed class descriptions when I what to see class structure. I miss out on using class diagrams to express constraints so I'm studying that usage.
You should Google Leon Starr, though. He has a good blog article (and a book I have not read) about clearly expressing constraints in class diagrams. This seems like the very best purpose of a class diagram yet I seldom see them used to this full advantage.
TIFWIIW,
Dan
I use class diagrams while figuring out the decomposition but a class diagram tends to be a temporary document for me. The complete details of a class are more easily expressed in my target language (C++) than in UML. It is easier to express the details, compile and then import the detailed class descriptions when I what to see class structure. I miss out on using class diagrams to express constraints so I'm studying that usage.
You should Google Leon Starr, though. He has a good blog article (and a book I have not read) about clearly expressing constraints in class diagrams. This seems like the very best purpose of a class diagram yet I seldom see them used to this full advantage.
TIFWIIW,
Dan