| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using Lattice.ECS.Core; |
| | | 4 | | |
| | | 5 | | namespace Lattice.ECS.Session |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// SessionRuntime 的历史帧、采样快照、物化缓存与帧池管理。 |
| | | 9 | | /// 负责保留策略与缓存复用,不直接决定运行时公开语义。 |
| | | 10 | | /// </summary> |
| | | 11 | | internal sealed class SessionFrameHistory |
| | | 12 | | { |
| | | 13 | | private readonly Dictionary<int, Frame> _historyByTick; |
| | | 14 | | private readonly Queue<int> _historyOrder; |
| | | 15 | | private readonly Dictionary<int, PackedFrameSnapshot> _historySnapshotsByTick; |
| | | 16 | | private readonly List<int> _historySnapshotTicks; |
| | | 17 | | private readonly Stack<Frame> _recycledFrames; |
| | | 18 | | private readonly Dictionary<int, Frame> _materializedHistoryByTick; |
| | | 19 | | private readonly List<int> _materializedHistoryOrder; |
| | | 20 | | private Frame? _historicalScratchFrame; |
| | 113 | 21 | | private int _highestHistoryTick = -1; |
| | | 22 | | |
| | 113 | 23 | | public SessionFrameHistory() |
| | | 24 | | { |
| | 113 | 25 | | _historyByTick = new Dictionary<int, Frame>(SessionRuntimeDataDefaults.HistorySize); |
| | 113 | 26 | | _historyOrder = new Queue<int>(SessionRuntimeDataDefaults.HistorySize); |
| | 113 | 27 | | _historySnapshotsByTick = new Dictionary<int, PackedFrameSnapshot>( |
| | 113 | 28 | | SessionRuntimeDataDefaults.HistorySize / SessionRuntimeDataDefaults.HistorySnapshotInterval + 2); |
| | 113 | 29 | | _historySnapshotTicks = new List<int>( |
| | 113 | 30 | | SessionRuntimeDataDefaults.HistorySize / SessionRuntimeDataDefaults.HistorySnapshotInterval + 2); |
| | 113 | 31 | | _recycledFrames = new Stack<Frame>(SessionRuntimeDataDefaults.RecycledFrameLimit); |
| | 113 | 32 | | _materializedHistoryByTick = new Dictionary<int, Frame>(SessionRuntimeDataDefaults.MaterializedHistoryCacheS |
| | 113 | 33 | | _materializedHistoryOrder = new List<int>(SessionRuntimeDataDefaults.MaterializedHistoryCacheSize); |
| | 113 | 34 | | } |
| | | 35 | | |
| | 0 | 36 | | public int HighestHistoryTick => _highestHistoryTick; |
| | | 37 | | |
| | | 38 | | public bool TryGetLiveFrame(int tick, out Frame? frame) |
| | | 39 | | { |
| | 95 | 40 | | return _historyByTick.TryGetValue(tick, out frame); |
| | | 41 | | } |
| | | 42 | | |
| | | 43 | | public bool TryGetMaterializedFrame(int tick, out Frame? frame) |
| | | 44 | | { |
| | 52 | 45 | | if (_materializedHistoryByTick.TryGetValue(tick, out frame)) |
| | | 46 | | { |
| | 5 | 47 | | TouchMaterializedHistoryTick(tick); |
| | 5 | 48 | | return true; |
| | | 49 | | } |
| | | 50 | | |
| | 47 | 51 | | return false; |
| | | 52 | | } |
| | | 53 | | |
| | | 54 | | public bool TryGetScratchFrame(int tick, out Frame? frame) |
| | | 55 | | { |
| | 47 | 56 | | if (_historicalScratchFrame != null && _historicalScratchFrame.Tick == tick) |
| | | 57 | | { |
| | 0 | 58 | | frame = _historicalScratchFrame; |
| | 0 | 59 | | return true; |
| | | 60 | | } |
| | | 61 | | |
| | 47 | 62 | | frame = null; |
| | 47 | 63 | | return false; |
| | | 64 | | } |
| | | 65 | | |
| | | 66 | | public bool IsTickWithinRetentionWindow(int tick) |
| | | 67 | | { |
| | 25 | 68 | | if (tick < 0 || _highestHistoryTick < 0) |
| | | 69 | | { |
| | 1 | 70 | | return false; |
| | | 71 | | } |
| | | 72 | | |
| | 24 | 73 | | if (tick > _highestHistoryTick) |
| | | 74 | | { |
| | 1 | 75 | | return false; |
| | | 76 | | } |
| | | 77 | | |
| | 23 | 78 | | int minTick = _highestHistoryTick - SessionRuntimeDataDefaults.HistorySize + 1; |
| | 23 | 79 | | return tick >= minTick; |
| | | 80 | | } |
| | | 81 | | |
| | | 82 | | public bool TryFindClosestLiveFrame(int tick, out int baseTick, out Frame? frame) |
| | | 83 | | { |
| | 22 | 84 | | baseTick = -1; |
| | 22 | 85 | | frame = null; |
| | | 86 | | |
| | 572 | 87 | | foreach ((int historicalTick, Frame historicalFrame) in _historyByTick) |
| | | 88 | | { |
| | 264 | 89 | | if (historicalTick <= tick && historicalTick > baseTick) |
| | | 90 | | { |
| | 0 | 91 | | baseTick = historicalTick; |
| | 0 | 92 | | frame = historicalFrame; |
| | | 93 | | } |
| | | 94 | | } |
| | | 95 | | |
| | 22 | 96 | | return frame != null; |
| | | 97 | | } |
| | | 98 | | |
| | | 99 | | public bool TryFindClosestMaterializedFrame(int tick, out int baseTick, out Frame? frame) |
| | | 100 | | { |
| | 22 | 101 | | baseTick = -1; |
| | 22 | 102 | | frame = null; |
| | | 103 | | |
| | 66 | 104 | | for (int i = 0; i < _materializedHistoryOrder.Count; i++) |
| | | 105 | | { |
| | 11 | 106 | | int candidateTick = _materializedHistoryOrder[i]; |
| | 11 | 107 | | if (candidateTick <= tick && candidateTick > baseTick) |
| | | 108 | | { |
| | 7 | 109 | | baseTick = candidateTick; |
| | | 110 | | } |
| | | 111 | | } |
| | | 112 | | |
| | 22 | 113 | | if (baseTick < 0 || !_materializedHistoryByTick.TryGetValue(baseTick, out frame)) |
| | | 114 | | { |
| | 15 | 115 | | baseTick = -1; |
| | 15 | 116 | | frame = null; |
| | 15 | 117 | | return false; |
| | | 118 | | } |
| | | 119 | | |
| | 7 | 120 | | TouchMaterializedHistoryTick(baseTick); |
| | 7 | 121 | | return true; |
| | | 122 | | } |
| | | 123 | | |
| | | 124 | | public bool TryGetScratchAsBaseFrame(int tick, out int baseTick, out Frame? frame) |
| | | 125 | | { |
| | 22 | 126 | | if (_historicalScratchFrame != null && _historicalScratchFrame.Tick <= tick) |
| | | 127 | | { |
| | 7 | 128 | | baseTick = _historicalScratchFrame.Tick; |
| | 7 | 129 | | frame = _historicalScratchFrame; |
| | 7 | 130 | | return true; |
| | | 131 | | } |
| | | 132 | | |
| | 15 | 133 | | baseTick = -1; |
| | 15 | 134 | | frame = null; |
| | 15 | 135 | | return false; |
| | | 136 | | } |
| | | 137 | | |
| | | 138 | | public bool TryFindClosestSnapshotTick(int tick, out int snapshotTick) |
| | | 139 | | { |
| | 15 | 140 | | snapshotTick = -1; |
| | 15 | 141 | | if (_historySnapshotTicks.Count == 0) |
| | | 142 | | { |
| | 0 | 143 | | return false; |
| | | 144 | | } |
| | | 145 | | |
| | 15 | 146 | | int index = _historySnapshotTicks.BinarySearch(tick); |
| | 15 | 147 | | if (index < 0) |
| | | 148 | | { |
| | 15 | 149 | | index = ~index - 1; |
| | | 150 | | } |
| | | 151 | | |
| | 15 | 152 | | if ((uint)index >= (uint)_historySnapshotTicks.Count) |
| | | 153 | | { |
| | 0 | 154 | | return false; |
| | | 155 | | } |
| | | 156 | | |
| | 15 | 157 | | snapshotTick = _historySnapshotTicks[index]; |
| | 15 | 158 | | return snapshotTick >= 0; |
| | | 159 | | } |
| | | 160 | | |
| | | 161 | | public PackedFrameSnapshot GetSnapshot(int tick) |
| | | 162 | | { |
| | 15 | 163 | | return _historySnapshotsByTick[tick]; |
| | | 164 | | } |
| | | 165 | | |
| | | 166 | | public void UpdateHistory(Frame frame, Action<Frame?> releaseDetachedFrame) |
| | | 167 | | { |
| | 688 | 168 | | ArgumentNullException.ThrowIfNull(frame); |
| | 688 | 169 | | ArgumentNullException.ThrowIfNull(releaseDetachedFrame); |
| | | 170 | | |
| | 688 | 171 | | InvalidateMaterializedCache(releaseDetachedFrame); |
| | 688 | 172 | | RemoveHistorySnapshot(frame.Tick); |
| | | 173 | | |
| | 688 | 174 | | if (_historyByTick.TryGetValue(frame.Tick, out Frame? existing)) |
| | | 175 | | { |
| | 26 | 176 | | if (!ReferenceEquals(existing, frame)) |
| | | 177 | | { |
| | 26 | 178 | | _historyByTick[frame.Tick] = frame; |
| | 26 | 179 | | releaseDetachedFrame(existing); |
| | | 180 | | } |
| | | 181 | | |
| | 26 | 182 | | return; |
| | | 183 | | } |
| | | 184 | | |
| | 662 | 185 | | AddHistoryFrame(frame, releaseDetachedFrame); |
| | 662 | 186 | | } |
| | | 187 | | |
| | | 188 | | public void InvalidateMaterializedCache(Action<Frame?> releaseDetachedFrame) |
| | | 189 | | { |
| | 691 | 190 | | ArgumentNullException.ThrowIfNull(releaseDetachedFrame); |
| | | 191 | | |
| | 691 | 192 | | Frame? scratchFrame = _historicalScratchFrame; |
| | 691 | 193 | | _historicalScratchFrame = null; |
| | | 194 | | |
| | 691 | 195 | | if (_materializedHistoryByTick.Count > 0) |
| | | 196 | | { |
| | 44 | 197 | | for (int i = 0; i < _materializedHistoryOrder.Count; i++) |
| | | 198 | | { |
| | 15 | 199 | | int tick = _materializedHistoryOrder[i]; |
| | 15 | 200 | | if (_materializedHistoryByTick.Remove(tick, out Frame? cachedFrame) && |
| | 15 | 201 | | !ReferenceEquals(cachedFrame, scratchFrame)) |
| | | 202 | | { |
| | 8 | 203 | | releaseDetachedFrame(cachedFrame); |
| | | 204 | | } |
| | | 205 | | } |
| | | 206 | | |
| | 7 | 207 | | _materializedHistoryOrder.Clear(); |
| | | 208 | | } |
| | | 209 | | |
| | 691 | 210 | | releaseDetachedFrame(scratchFrame); |
| | 691 | 211 | | } |
| | | 212 | | |
| | | 213 | | public void StoreMaterializedFrame(Frame frame, Action<Frame?> releaseDetachedFrame) |
| | | 214 | | { |
| | 22 | 215 | | ArgumentNullException.ThrowIfNull(frame); |
| | 22 | 216 | | ArgumentNullException.ThrowIfNull(releaseDetachedFrame); |
| | | 217 | | |
| | 22 | 218 | | int tick = frame.Tick; |
| | | 219 | | |
| | 22 | 220 | | if (_materializedHistoryByTick.TryGetValue(tick, out Frame? existing)) |
| | | 221 | | { |
| | 0 | 222 | | if (!ReferenceEquals(existing, frame)) |
| | | 223 | | { |
| | 0 | 224 | | _materializedHistoryByTick[tick] = frame; |
| | 0 | 225 | | releaseDetachedFrame(existing); |
| | | 226 | | } |
| | | 227 | | |
| | 0 | 228 | | TouchMaterializedHistoryTick(tick); |
| | 0 | 229 | | return; |
| | | 230 | | } |
| | | 231 | | |
| | 22 | 232 | | _materializedHistoryByTick[tick] = frame; |
| | 22 | 233 | | _materializedHistoryOrder.Add(tick); |
| | | 234 | | |
| | 22 | 235 | | if (_materializedHistoryOrder.Count > SessionRuntimeDataDefaults.MaterializedHistoryCacheSize) |
| | | 236 | | { |
| | 0 | 237 | | int evictedTick = _materializedHistoryOrder[0]; |
| | 0 | 238 | | _materializedHistoryOrder.RemoveAt(0); |
| | 0 | 239 | | if (_materializedHistoryByTick.Remove(evictedTick, out Frame? evictedFrame)) |
| | | 240 | | { |
| | 0 | 241 | | releaseDetachedFrame(evictedFrame); |
| | | 242 | | } |
| | | 243 | | } |
| | 22 | 244 | | } |
| | | 245 | | |
| | | 246 | | public void SetScratchFrame(Frame frame, Action<Frame?> releaseDetachedFrame) |
| | | 247 | | { |
| | 22 | 248 | | ArgumentNullException.ThrowIfNull(frame); |
| | 22 | 249 | | ArgumentNullException.ThrowIfNull(releaseDetachedFrame); |
| | | 250 | | |
| | 22 | 251 | | if (!ReferenceEquals(_historicalScratchFrame, frame)) |
| | | 252 | | { |
| | 22 | 253 | | releaseDetachedFrame(_historicalScratchFrame); |
| | 22 | 254 | | _historicalScratchFrame = frame; |
| | | 255 | | } |
| | 22 | 256 | | } |
| | | 257 | | |
| | | 258 | | public Frame RentFrameBuffer(int requiredEntityCapacity) |
| | | 259 | | { |
| | 635 | 260 | | while (_recycledFrames.Count > 0) |
| | | 261 | | { |
| | 412 | 262 | | Frame recycled = _recycledFrames.Pop(); |
| | 412 | 263 | | if (recycled.EntityCapacity == requiredEntityCapacity) |
| | | 264 | | { |
| | 412 | 265 | | return recycled; |
| | | 266 | | } |
| | | 267 | | |
| | 0 | 268 | | recycled.Dispose(); |
| | | 269 | | } |
| | | 270 | | |
| | 223 | 271 | | return new Frame(requiredEntityCapacity); |
| | | 272 | | } |
| | | 273 | | |
| | | 274 | | public void RecycleFrame(Frame? frame) |
| | | 275 | | { |
| | 435 | 276 | | if (frame == null) |
| | | 277 | | { |
| | 0 | 278 | | return; |
| | | 279 | | } |
| | | 280 | | |
| | 435 | 281 | | if (_recycledFrames.Count < SessionRuntimeDataDefaults.RecycledFrameLimit) |
| | | 282 | | { |
| | 435 | 283 | | _recycledFrames.Push(frame); |
| | 435 | 284 | | return; |
| | | 285 | | } |
| | | 286 | | |
| | 0 | 287 | | frame.Dispose(); |
| | 0 | 288 | | } |
| | | 289 | | |
| | | 290 | | public bool Owns(Frame frame) |
| | | 291 | | { |
| | 949 | 292 | | if (ReferenceEquals(frame, _historicalScratchFrame)) |
| | | 293 | | { |
| | 9 | 294 | | return true; |
| | | 295 | | } |
| | | 296 | | |
| | 940 | 297 | | if (_materializedHistoryByTick.TryGetValue(frame.Tick, out Frame? materializedFrame) && |
| | 940 | 298 | | ReferenceEquals(frame, materializedFrame)) |
| | | 299 | | { |
| | 0 | 300 | | return true; |
| | | 301 | | } |
| | | 302 | | |
| | 940 | 303 | | if (_historyByTick.TryGetValue(frame.Tick, out Frame? historicalFrame) && |
| | 940 | 304 | | ReferenceEquals(frame, historicalFrame)) |
| | | 305 | | { |
| | 506 | 306 | | return true; |
| | | 307 | | } |
| | | 308 | | |
| | 434 | 309 | | return false; |
| | | 310 | | } |
| | | 311 | | |
| | | 312 | | public void CopyOwnedFramesTo(ISet<Frame> frames) |
| | | 313 | | { |
| | 192 | 314 | | ArgumentNullException.ThrowIfNull(frames); |
| | | 315 | | |
| | 192 | 316 | | if (_historicalScratchFrame != null) |
| | | 317 | | { |
| | 6 | 318 | | frames.Add(_historicalScratchFrame); |
| | | 319 | | } |
| | | 320 | | |
| | 398 | 321 | | foreach (Frame materializedFrame in _materializedHistoryByTick.Values) |
| | | 322 | | { |
| | 7 | 323 | | frames.Add(materializedFrame); |
| | | 324 | | } |
| | | 325 | | |
| | 994 | 326 | | foreach (Frame historicalFrame in _historyByTick.Values) |
| | | 327 | | { |
| | 305 | 328 | | frames.Add(historicalFrame); |
| | | 329 | | } |
| | | 330 | | |
| | 430 | 331 | | foreach (Frame recycledFrame in _recycledFrames) |
| | | 332 | | { |
| | 23 | 333 | | frames.Add(recycledFrame); |
| | | 334 | | } |
| | 192 | 335 | | } |
| | | 336 | | |
| | | 337 | | public void Clear() |
| | | 338 | | { |
| | 192 | 339 | | _historicalScratchFrame = null; |
| | 192 | 340 | | _highestHistoryTick = -1; |
| | 192 | 341 | | _historyByTick.Clear(); |
| | 192 | 342 | | _historyOrder.Clear(); |
| | 192 | 343 | | _historySnapshotsByTick.Clear(); |
| | 192 | 344 | | _historySnapshotTicks.Clear(); |
| | 192 | 345 | | _materializedHistoryByTick.Clear(); |
| | 192 | 346 | | _materializedHistoryOrder.Clear(); |
| | 192 | 347 | | _recycledFrames.Clear(); |
| | 192 | 348 | | } |
| | | 349 | | |
| | | 350 | | private void AddHistoryFrame(Frame frame, Action<Frame?> releaseDetachedFrame) |
| | | 351 | | { |
| | 662 | 352 | | _historyByTick.Add(frame.Tick, frame); |
| | 662 | 353 | | _historyOrder.Enqueue(frame.Tick); |
| | 662 | 354 | | _highestHistoryTick = System.Math.Max(_highestHistoryTick, frame.Tick); |
| | | 355 | | |
| | 662 | 356 | | TrimExpiredHistory(releaseDetachedFrame); |
| | 662 | 357 | | DemoteOldLiveHistory(releaseDetachedFrame); |
| | 662 | 358 | | } |
| | | 359 | | |
| | | 360 | | private void TrimExpiredHistory(Action<Frame?> releaseDetachedFrame) |
| | | 361 | | { |
| | 662 | 362 | | int minTick = _highestHistoryTick - SessionRuntimeDataDefaults.HistorySize + 1; |
| | | 363 | | |
| | 662 | 364 | | while (_historyOrder.Count > 0 && _historyOrder.Peek() < minTick) |
| | | 365 | | { |
| | 0 | 366 | | int expiredTick = _historyOrder.Dequeue(); |
| | 0 | 367 | | if (_historyByTick.Remove(expiredTick, out Frame? expiredFrame)) |
| | | 368 | | { |
| | 0 | 369 | | RemoveHistorySnapshot(expiredTick); |
| | 0 | 370 | | releaseDetachedFrame(expiredFrame); |
| | | 371 | | } |
| | | 372 | | } |
| | | 373 | | |
| | 662 | 374 | | TrimExpiredSnapshots(minTick); |
| | 662 | 375 | | } |
| | | 376 | | |
| | | 377 | | private void DemoteOldLiveHistory(Action<Frame?> releaseDetachedFrame) |
| | | 378 | | { |
| | 1019 | 379 | | while (_historyByTick.Count > SessionRuntimeDataDefaults.LiveHistorySize && _historyOrder.Count > 0) |
| | | 380 | | { |
| | 357 | 381 | | int demotedTick = _historyOrder.Dequeue(); |
| | 357 | 382 | | if (!_historyByTick.Remove(demotedTick, out Frame? demotedFrame)) |
| | | 383 | | { |
| | | 384 | | continue; |
| | | 385 | | } |
| | | 386 | | |
| | 357 | 387 | | CaptureHistorySnapshotIfNeeded(demotedTick, demotedFrame); |
| | 357 | 388 | | releaseDetachedFrame(demotedFrame); |
| | | 389 | | } |
| | 662 | 390 | | } |
| | | 391 | | |
| | | 392 | | private void CaptureHistorySnapshotIfNeeded(int tick, Frame frame) |
| | | 393 | | { |
| | 357 | 394 | | if (tick != 0 && (tick % SessionRuntimeDataDefaults.HistorySnapshotInterval) != 0) |
| | | 395 | | { |
| | 260 | 396 | | return; |
| | | 397 | | } |
| | | 398 | | |
| | 97 | 399 | | bool isNewSnapshot = !_historySnapshotsByTick.ContainsKey(tick); |
| | 97 | 400 | | _historySnapshotsByTick[tick] = frame.CapturePackedSnapshot(ComponentSerializationMode.Prediction); |
| | 97 | 401 | | if (isNewSnapshot) |
| | | 402 | | { |
| | 97 | 403 | | InsertHistorySnapshotTick(tick); |
| | | 404 | | } |
| | 97 | 405 | | } |
| | | 406 | | |
| | | 407 | | private void RemoveHistorySnapshot(int tick) |
| | | 408 | | { |
| | 688 | 409 | | if (_historySnapshotsByTick.Remove(tick)) |
| | | 410 | | { |
| | 15 | 411 | | RemoveHistorySnapshotTick(tick); |
| | | 412 | | } |
| | 688 | 413 | | } |
| | | 414 | | |
| | | 415 | | private void TrimExpiredSnapshots(int minTick) |
| | | 416 | | { |
| | 662 | 417 | | if (_historySnapshotsByTick.Count == 0) |
| | | 418 | | { |
| | 315 | 419 | | _historySnapshotTicks.Clear(); |
| | 315 | 420 | | return; |
| | | 421 | | } |
| | | 422 | | |
| | 347 | 423 | | int firstWithinRangeIndex = _historySnapshotTicks.BinarySearch(minTick); |
| | 347 | 424 | | if (firstWithinRangeIndex < 0) |
| | | 425 | | { |
| | 346 | 426 | | firstWithinRangeIndex = ~firstWithinRangeIndex; |
| | | 427 | | } |
| | | 428 | | |
| | 347 | 429 | | int anchorIndex = firstWithinRangeIndex - 1; |
| | 694 | 430 | | for (int i = anchorIndex - 1; i >= 0; i--) |
| | | 431 | | { |
| | 0 | 432 | | _historySnapshotsByTick.Remove(_historySnapshotTicks[i]); |
| | 0 | 433 | | _historySnapshotTicks.RemoveAt(i); |
| | | 434 | | } |
| | 347 | 435 | | } |
| | | 436 | | |
| | | 437 | | private void TouchMaterializedHistoryTick(int tick) |
| | | 438 | | { |
| | 12 | 439 | | int index = _materializedHistoryOrder.IndexOf(tick); |
| | 12 | 440 | | if (index < 0 || index == _materializedHistoryOrder.Count - 1) |
| | | 441 | | { |
| | 9 | 442 | | return; |
| | | 443 | | } |
| | | 444 | | |
| | 3 | 445 | | _materializedHistoryOrder.RemoveAt(index); |
| | 3 | 446 | | _materializedHistoryOrder.Add(tick); |
| | 3 | 447 | | } |
| | | 448 | | |
| | | 449 | | private void InsertHistorySnapshotTick(int tick) |
| | | 450 | | { |
| | 97 | 451 | | int index = _historySnapshotTicks.BinarySearch(tick); |
| | 97 | 452 | | if (index >= 0) |
| | | 453 | | { |
| | 0 | 454 | | return; |
| | | 455 | | } |
| | | 456 | | |
| | 97 | 457 | | _historySnapshotTicks.Insert(~index, tick); |
| | 97 | 458 | | } |
| | | 459 | | |
| | | 460 | | private void RemoveHistorySnapshotTick(int tick) |
| | | 461 | | { |
| | 15 | 462 | | int index = _historySnapshotTicks.BinarySearch(tick); |
| | 15 | 463 | | if (index >= 0) |
| | | 464 | | { |
| | 15 | 465 | | _historySnapshotTicks.RemoveAt(index); |
| | | 466 | | } |
| | 15 | 467 | | } |
| | | 468 | | } |
| | | 469 | | } |