更新地面站数量
(self, new_count)
| 2042 | return base_rate |
| 2043 | |
| 2044 | def update_ground_station_count(self, new_count): |
| 2045 | """更新地面站数量""" |
| 2046 | with self.lock: |
| 2047 | # 验证范围 |
| 2048 | new_count = max(MIN_GROUND_STATION_COUNT, min(new_count, MAX_GROUND_STATION_COUNT)) |
| 2049 | |
| 2050 | if new_count != self.ground_station_count: |
| 2051 | self.ground_station_count = new_count |
| 2052 | # 重新随机选择地面站 |
| 2053 | self.ground_stations = self.rng.sample(self.all_ground_stations, self.ground_station_count) |
| 2054 | return True |
| 2055 | return False |
| 2056 | |
| 2057 | def update_leo_satellite_count(self, new_count): |
| 2058 | """⭐ 更新LEO卫星数量 - 轨道参数预先已知,支持动态生成补充,无上限。 |
no outgoing calls