intra_constellation
cosmica.topology.intra_constellation
__all__
module-attribute
__all__ = [
"ConstellationTimeSeriesTopologyBuilder",
"ConstellationTopologyBuilder",
"ManhattanTimeSeriesTopologyBuilder",
"ManhattanTopologyBuilder",
"build_manhattan_time_series_topology",
"build_manhattan_topology",
]
InPlaneIndex
InPlaneIndex = int
PlaneId
PlaneId = int
ConstellationTimeSeriesTopologyBuilder
Bases: ABC
build
abstractmethod
build(
*,
constellation: TConstellation,
dynamics_data: DynamicsData
) -> list[TGraph]
Source code in src/cosmica/topology/intra_constellation.py
38 39 40 41 42 43 44 | |
ConstellationTopologyBuilder
Bases: ABC
build
abstractmethod
build(*, constellation: TConstellation) -> TGraph
Source code in src/cosmica/topology/intra_constellation.py
28 29 30 31 32 33 | |
ManhattanTimeSeriesTopologyBuilder
ManhattanTimeSeriesTopologyBuilder(
*,
inter_plane_offset: int = 0,
last_to_first_plane_offset: int = 0,
max_latitude: float = deg2rad(90.0)
)
Bases: ConstellationTimeSeriesTopologyBuilder[MultiOrbitalPlaneConstellation[CircularSatelliteOrbit], Graph]
Source code in src/cosmica/topology/intra_constellation.py
125 126 127 128 129 130 131 132 133 134 | |
inter_plane_offset
instance-attribute
inter_plane_offset = inter_plane_offset
last_to_first_plane_offset
instance-attribute
last_to_first_plane_offset = last_to_first_plane_offset
max_latitude
instance-attribute
max_latitude = max_latitude
build
build(
*,
constellation: MultiOrbitalPlaneConstellation,
dynamics_data: DynamicsData
) -> list[Graph]
Source code in src/cosmica/topology/intra_constellation.py
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 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |
ManhattanTopologyBuilder
ManhattanTopologyBuilder(
*,
inter_plane_offset: int = 0,
last_to_first_plane_offset: int = 0
)
Bases: ConstellationTopologyBuilder[MultiOrbitalPlaneConstellation[CircularSatelliteOrbit], Graph]
Source code in src/cosmica/topology/intra_constellation.py
51 52 53 54 55 56 57 58 | |
inter_plane_offset
instance-attribute
inter_plane_offset = inter_plane_offset
last_to_first_plane_offset
instance-attribute
last_to_first_plane_offset = last_to_first_plane_offset
build
build(
*, constellation: MultiOrbitalPlaneConstellation
) -> Graph
Source code in src/cosmica/topology/intra_constellation.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
build_manhattan_time_series_topology
build_manhattan_time_series_topology(
constellation: Constellation[tuple[int, int]],
*,
dynamics_data: DynamicsData,
inter_plane_offset: int = 0,
last_to_first_plane_offset: int = 0,
max_latitude: float = deg2rad(90.0)
) -> list[Graph]
Build time-varying Manhattan topology, disabling inter-plane links near poles.
Same as :func:build_manhattan_topology, but produces one graph per time
step. Inter-plane edges are omitted at time steps where both endpoints
exceed max_latitude (polar region avoidance).
| PARAMETER | DESCRIPTION |
|---|---|
constellation
|
Constellation with
TYPE:
|
dynamics_data
|
Time-series dynamics data for satellite positions.
TYPE:
|
inter_plane_offset
|
Index offset when connecting adjacent planes.
TYPE:
|
last_to_first_plane_offset
|
Additional offset for the wrap-around connection from the last plane back to the first.
TYPE:
|
max_latitude
|
Latitude threshold (radians) above which inter-plane links are disabled.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[Graph]
|
A list of networkx Graphs, one per time step. |
Source code in src/cosmica/topology/intra_constellation.py
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | |
build_manhattan_topology
build_manhattan_topology(
constellation: Constellation[tuple[int, int]],
*,
inter_plane_offset: int = 0,
last_to_first_plane_offset: int = 0
) -> Graph
Build a Manhattan (grid) topology for a multi-plane constellation.
The constellation must be parameterized as Constellation[tuple[int, int]]
where each key is (plane_id, in_plane_index). All structural information
(plane membership, intra-plane ordering, inter-plane ordering) is derived
from these dict keys — not from orbital parameters or satellite.id.
All planes must have the same number of satellites.
| PARAMETER | DESCRIPTION |
|---|---|
constellation
|
Constellation with
TYPE:
|
inter_plane_offset
|
Index offset when connecting adjacent planes.
TYPE:
|
last_to_first_plane_offset
|
Additional offset for the wrap-around connection from the last plane back to the first.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Graph
|
A networkx Graph with satellites as nodes and Manhattan grid edges. |
Source code in src/cosmica/topology/intra_constellation.py
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | |