Relationship Types
Every edge in the pattern network has one of six types. The type tells a designer what the edge obliges.
| Relationship | Meaning | What it obliges in a composition |
|---|---|---|
| Requires | The source pattern cannot satisfy its declared outcome without the target. | Mandatory whenever the source is selected, unless qualified by a guard. |
| Requires … when guard | The requirement holds only under the stated condition. | Mandatory when the guard is true; the manifest records why the guard is true or false. |
| Requires one of | The source requires at least one member of a named set of alternatives. | Select at least one member and record the rationale. |
| Enables | The source makes the target possible or practical. | Nothing; it suggests a next pattern. |
| Refines | The source is a more specific version of the target. | Selecting the source satisfies the target’s obligations only if the refinement’s own obligations are also met. |
| Contained in | The source is applied as a technique inside the target. | Nothing by itself; it locates the pattern in the hierarchy. |
| Often used with | The two are frequently combined without a strict dependency. | Nothing; consider it. |
How relationships correspond to Alexander’s links
In A Pattern Language, the paragraph before a pattern’s problem names the larger patterns it helps complete, and the paragraph after its solution names the smaller patterns that complete it. In this language the same links are carried by types. A pattern’s “Contained in” targets and the patterns that “Require” it are its larger patterns; its own “Requires” targets are its smaller ones. The context and closing paragraphs of each pattern state these links in prose; the record states them as data.
Rules for edges
- Relationships do not prescribe execution order.
- An unguarded “Requires” edge cannot be relabeled optional in a composition. It can only be discharged by a recorded substitution (see the composition grammar).
- A guard is a condition on the composed solution’s outcome or context, written in plain language in the record (for example, “when the outcome includes new units”).
- Retired patterns keep their edges, drawn distinctly, so the network continues to show the history of the design space.