ogs.ir¶
Models¶
Bases: BaseModel
A single open game component in the flat IR representation.
Source code in packages/gds-games/ogs/ir/models.py
Bases: BaseModel
A directed information flow (edge) between components in the IR.
Source code in packages/gds-games/ogs/ir/models.py
Bases: BaseModel
A complete composite pattern — the top-level unit of specification.
Source code in packages/gds-games/ogs/ir/models.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | |
to_system_ir()
¶
Project this OGS PatternIR to a GDS SystemIR.
Enables interop with any GDS tool that accepts SystemIR, including GDS generic verification checks (G-001 through G-006).
Mapping: - OpenGameIR → BlockIR (game_type → block_type, constraints/tags → metadata) - FlowIR → WiringIR (flow_type → wiring_type, is_corecursive → is_temporal) - OGS CORECURSIVE → GDS TEMPORAL
Source code in packages/gds-games/ogs/ir/models.py
Bases: HierarchyNodeIR
OGS hierarchy node — extends GDS with CORECURSIVE composition type.
Inherits id, name, block_name, exit_condition, and
children from GDS. Overrides composition_type to use the OGS
enum which includes CORECURSIVE (mapped to GDS TEMPORAL).
The game_name property is a backwards-compatible alias for
block_name (inherited from GDS).
Source code in packages/gds-games/ogs/ir/models.py
game_name
property
¶
Backwards-compatible alias for block_name.
Serialization¶
Bases: BaseModel
Top-level IR document containing one or more patterns.