Chapter 7

Summary of Templates

Table 7.1, Table 7.2, Table 7.3, Table 7.4 and Table 7.5 summarize the mathematical templates.

Table 7.1

Tree Templates

Template

Synopsis

UML diagram

Use when

Frequency

Hardcoded tree

Specifies a type sequence, one for each level of the hierarchy.

image

The levels in a tree are known and ordered.

Seldom

Simple tree

Treats all nodes the same.

image

A tree concerns only data structure.

Common

Structured tree

Differentiates leaf nodes from branch nodes.

Branch nodes and leaf nodes differ.

Common

Overlapping ...

Get Patterns of Data Modeling 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.