How the semantics aspect of UML model can be used in code generation, validity checking and complexity metrics?

Viewed 147

I've found the definition of model in UML reference manual (chapter 2) and I can't get what the authors mean by the following sentence:

The semantic modeling elements are used for code generation, validity checking, complexity metrics.

How can the semantic aspect of UML model be used in

1) code generation,

2) validity checking and

3) complexity metrics

I hope I can find someone help me understand it through simple example

1 Answers
Related