usersatellite_to_constellation
cosmica.topology.usersatellite_to_constellation
__all__
module-attribute
__all__ = [
"MaxConnectionTimeUS2CTopologyBuilder",
"UserSatelliteToConstellationTopologyBuilder",
"build_max_connection_time_us2c_topology",
]
logger
module-attribute
logger = getLogger(__name__)
MaxConnectionTimeUS2CTopologyBuilder
MaxConnectionTimeUS2CTopologyBuilder(
max_distance: float = float("inf"),
max_relative_angular_velocity: float = float("inf"),
sun_exclusion_angle: float = 0.0,
)
Bases: UserSatelliteToConstellationTopologyBuilder[Constellation, UserSatellite, Graph]
Topology builder connecting user satellites to constellation with longest connection time.
This builder calculates the visibility duration between user satellites and constellation satellites, then selects the constellation satellite that provides the longest continuous connection time for each user satellite. This minimizes handovers and provides stable connections.
Source code in src/cosmica/topology/usersatellite_to_constellation.py
51 52 53 54 55 56 57 58 59 | |
max_distance
instance-attribute
max_distance = max_distance
max_relative_angular_velocity
instance-attribute
max_relative_angular_velocity = (
max_relative_angular_velocity
)
sun_exclusion_angle
instance-attribute
sun_exclusion_angle = sun_exclusion_angle
build
build(
*,
constellation: Constellation,
user_satellites: Collection[UserSatellite],
dynamics_data: DynamicsData
) -> list[Graph]
Source code in src/cosmica/topology/usersatellite_to_constellation.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
UserSatelliteToConstellationTopologyBuilder
Bases: ABC
build
abstractmethod
build(
*,
constellation: TConstellation,
user_satellites: Collection[TUserSatellite],
dynamics_data: DynamicsData
) -> list[TGraph]
Build time-varying topology connecting user satellites to constellation.
Source code in src/cosmica/topology/usersatellite_to_constellation.py
27 28 29 30 31 32 33 34 35 36 | |
build_max_connection_time_us2c_topology
build_max_connection_time_us2c_topology(
constellation: Constellation,
*,
user_satellites: Collection[UserSatellite],
dynamics_data: DynamicsData,
max_distance: float = float("inf"),
max_relative_angular_velocity: float = float("inf"),
sun_exclusion_angle: float = 0.0
) -> list[Graph]
Build user-satellite-to-constellation topology with longest connection time.
Selects the constellation satellite that provides the longest continuous connection time for each user satellite, minimizing handovers.
This function only needs the satellite set, so it accepts Constellation
with any SatelliteId type.
| PARAMETER | DESCRIPTION |
|---|---|
constellation
|
Constellation (any SatelliteId type).
TYPE:
|
user_satellites
|
User satellites to connect.
TYPE:
|
dynamics_data
|
Time-series dynamics data.
TYPE:
|
max_distance
|
Maximum distance constraint.
TYPE:
|
max_relative_angular_velocity
|
Maximum relative angular velocity constraint.
TYPE:
|
sun_exclusion_angle
|
Sun exclusion angle constraint (radians).
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[Graph]
|
A list of networkx Graphs, one per time step. |
Source code in src/cosmica/topology/usersatellite_to_constellation.py
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 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 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 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |