Contract

Definition

A contract is the declaration of required data for the complete execution of a factory component.

Motivation

A contract presents required information for the execution of a factory component, i.e. for encapsulated mechanisms, used technologies and decisions to manufacture a set of assets.

Structure

A contract is a set of contract elements, corresponding to all the necessary data to achieve generation tasks and this for all the involved factory components. Those are a set of key/value couples. A value can be simple (e.g., a string value), complex (e.g., a list) or a reference (e.g., a domain model reference).

The context of factory component provides values for the contract of a used factory component.

Contract/Context relationship

Figure 1. Contract/Context Relationship