Concepts and decisions
For why these objects exist and how they fit into a study, see Concepts. The declarations below are public imports from paretorium.
paretorium.DesignSpace
dataclass
A catalog of decisions and rules that enumerates and screens their Cartesian product.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
decisions
|
tuple[Decision, ...]
|
Choices to combine. Empty yields one baseline concept. |
()
|
rules
|
tuple[CompatibilityRule, ...]
|
Compatibility rules applied to each candidate. |
()
|
screen(concept: Concept) -> Candidate
Validate, assign a design ID, and check compatibility.
The ID is the one-based rank in the full product, ordered by decision ID and then by option ID. Rejected candidates keep their IDs.
paretorium.Decision
dataclass
A discrete architectural choice with one or more options.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
Unique decision identifier. |
required |
options
|
tuple[Option, ...]
|
Nonempty collection of alternatives with distinct IDs. |
required |
name
|
str
|
Optional display label. |
''
|
paretorium.Option
dataclass
One selectable alternative within a decision. The ID, not the name, identifies it in a concept.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
Identifier unique within the decision. |
required |
name
|
str
|
Optional display label. |
''
|
source
|
str
|
Optional provenance note. |
''
|
paretorium.Concept
dataclass
An immutable mapping from decision IDs to selected option IDs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
choices
|
Mapping[str, str]
|
Decision IDs mapped to option IDs. A study requires one choice per decision. |
dict()
|
design_id: str | None
property
Short design-space reference (e.g. D-001), or None before screening.
id: str
property
Canonical decision–option key, independent of the design space.
paretorium.CompatibilityRule
dataclass
A static screening rule. Its check returns true for allowed concepts; its reason describes rejection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
Unique rule identifier. |
required |
check
|
Callable[[Concept], bool]
|
Predicate returning true for allowed concepts. |
required |
reason
|
str
|
Explanation recorded for rejected concepts. |
required |
paretorium.Candidate
dataclass
A screened concept and the rules it violated.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
concept
|
Concept
|
Architecture that was screened. |
required |
rejected_by
|
tuple[CompatibilityRule, ...]
|
Failed rules, empty when compatible. |
required |