Chapter 14

Code generation

Abstract

This chapter presents some techniques to initiate the automatization or systematization of source code generation source from conceptual/design diagrams and sequence diagrams. Structural rules are presented to explain how code may be generated for a class’s structures, such as attributes and associations. A significant part of the chapter is dedicated to the explanation of the many kinds of associations and the code generation patterns available for them. Finally, the chapter explains how Python running code may be generated for interaction diagrams that represent dynamic models.

Keywords

Automatic code generation; delegation; implementation; and programming

Key topics in this chapter

  • • Code generation for classes, ...

Get Object-Oriented Analysis and Design for Information Systems, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.