Skip to content

gds_business.cld.elements

CLD element declarations — frozen Pydantic models for user-facing declarations.

Bases: BaseModel

A system variable in a causal loop diagram.

Maps to: GDS Policy (signal relay).

Source code in packages/gds-business/gds_business/cld/elements.py
class Variable(BaseModel, frozen=True):
    """A system variable in a causal loop diagram.

    Maps to: GDS Policy (signal relay).
    """

    name: str
    description: str = ""

Bases: BaseModel

A directed causal influence between variables.

Maps to: GDS Wiring. Polarity "+" means same-direction influence (reinforcing), "-" means opposite-direction influence (balancing).

Source code in packages/gds-business/gds_business/cld/elements.py
class CausalLink(BaseModel, frozen=True):
    """A directed causal influence between variables.

    Maps to: GDS Wiring.
    Polarity "+" means same-direction influence (reinforcing),
    "-" means opposite-direction influence (balancing).
    """

    source: str
    target: str
    polarity: Literal["+", "-"]
    delay: bool = False