MCPcopy Create free account
hub / github.com/Tong89/smartNode / update_ground_station_count

Method update_ground_station_count

backend/core.py:2044–2055  ·  view source on GitHub ↗

更新地面站数量

(self, new_count)

Source from the content-addressed store, hash-verified

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卫星数量 - 轨道参数预先已知,支持动态生成补充,无上限。

Callers 6

update_ground_stationsFunction · 0.80
loadMethod · 0.80
test_increase_countMethod · 0.80

Calls

no outgoing calls