| | | 1 | | using System; |
| | | 2 | | using System.Collections; |
| | | 3 | | using System.Collections.Generic; |
| | | 4 | | using System.Linq; |
| | | 5 | | using UnityEngine; |
| | | 6 | | |
| | | 7 | | // Base implementation of an interceptor. |
| | | 8 | | public abstract class InterceptorBase : AgentBase, IInterceptor { |
| | | 9 | | public event Action<IInterceptor> OnHit; |
| | | 10 | | public event Action<IInterceptor> OnMiss; |
| | | 11 | | public event Action<IInterceptor> OnDestroyed; |
| | | 12 | | |
| | | 13 | | // Default proportional navigation controller gain. |
| | | 14 | | private const float _proportionalNavigationGain = 5f; |
| | | 15 | | |
| | | 16 | | // Time to accumulate unassigned targets before launching additional sub-interceptors. |
| | | 17 | | private const float _unassignedTargetsLaunchPeriod = 2.5f; |
| | | 18 | | |
| | 0 | 19 | | public IEscapeDetector EscapeDetector { get; set; } |
| | | 20 | | |
| | 0 | 21 | | public CommsNode ParentCommsNode { get; set; } |
| | | 22 | | |
| | | 23 | | // Maximum number of threats that this interceptor can target. |
| | | 24 | | [SerializeField] |
| | | 25 | | private int _capacity; |
| | | 26 | | |
| | | 27 | | // Capacity of each sub-interceptor. |
| | | 28 | | [SerializeField] |
| | | 29 | | private int _capacityPerSubInterceptor; |
| | | 30 | | |
| | | 31 | | // Number of sub-interceptors. |
| | | 32 | | [SerializeField] |
| | | 33 | | private int _numSubInterceptors; |
| | | 34 | | |
| | | 35 | | // Number of sub-interceptors remaining that can be planned to launch. |
| | | 36 | | [SerializeField] |
| | | 37 | | private int _numSubInterceptorsPlannedRemaining; |
| | | 38 | | |
| | | 39 | | // Number of sub-interceptors remaining. |
| | | 40 | | [SerializeField] |
| | | 41 | | private int _numSubInterceptorsRemaining; |
| | | 42 | | |
| | | 43 | | public int Capacity { |
| | 0 | 44 | | get => _capacity; |
| | | 45 | | protected |
| | 0 | 46 | | set { _capacity = value; } |
| | | 47 | | } |
| | | 48 | | public int CapacityPerSubInterceptor { |
| | 0 | 49 | | get => _capacityPerSubInterceptor; |
| | | 50 | | protected |
| | 0 | 51 | | set { _capacityPerSubInterceptor = value; } |
| | | 52 | | } |
| | 0 | 53 | | public virtual int CapacityPlannedRemaining => CapacityPerSubInterceptor * |
| | | 54 | | NumSubInterceptorsPlannedRemaining; |
| | 0 | 55 | | public virtual int CapacityRemaining => CapacityPerSubInterceptor * NumSubInterceptorsRemaining; |
| | | 56 | | public int NumSubInterceptors { |
| | 0 | 57 | | get => _numSubInterceptors; |
| | | 58 | | protected |
| | 0 | 59 | | set { _numSubInterceptors = value; } |
| | | 60 | | } |
| | | 61 | | public int NumSubInterceptorsPlannedRemaining { |
| | 0 | 62 | | get => _numSubInterceptorsPlannedRemaining; |
| | | 63 | | protected |
| | 0 | 64 | | set { _numSubInterceptorsPlannedRemaining = value; } |
| | | 65 | | } |
| | | 66 | | public int NumSubInterceptorsRemaining { |
| | 0 | 67 | | get => _numSubInterceptorsRemaining; |
| | | 68 | | protected |
| | 0 | 69 | | set { _numSubInterceptorsRemaining = value; } |
| | | 70 | | } |
| | | 71 | | |
| | | 72 | | // If true, the interceptor can be reassigned to other targets. |
| | 0 | 73 | | public virtual bool IsReassignable => true; |
| | | 74 | | |
| | | 75 | | // Set of unassigned targets for which an additional sub-interceptor should be launched. |
| | 0 | 76 | | private HashSet<IHierarchical> _unassignedTargets = new HashSet<IHierarchical>(); |
| | | 77 | | |
| | | 78 | | // Coroutine for handling unassigned targets. |
| | | 79 | | private Coroutine _unassignedTargetsCoroutine; |
| | | 80 | | |
| | 0 | 81 | | protected override void Start() { |
| | 0 | 82 | | base.Start(); |
| | 0 | 83 | | _unassignedTargetsCoroutine = |
| | | 84 | | StartCoroutine(UnassignedTargetsManager(_unassignedTargetsLaunchPeriod)); |
| | 0 | 85 | | OnMiss += RegisterMiss; |
| | 0 | 86 | | OnDestroyed += RegisterDestroyed; |
| | 0 | 87 | | CommsNode.OnReceived += RegisterMessageReceived; |
| | 0 | 88 | | } |
| | | 89 | | |
| | 0 | 90 | | protected override void FixedUpdate() { |
| | 0 | 91 | | base.FixedUpdate(); |
| | | 92 | | |
| | | 93 | | // Check whether the interceptor has a target. If not, request a new target from the parent |
| | | 94 | | // interceptor. |
| | | 95 | | // TODO(Joseph0120): Prevent duplicate re-assignment requests while waiting for a response. |
| | 0 | 96 | | if (HierarchicalAgent.Target == null || HierarchicalAgent.Target.IsTerminated) { |
| | 0 | 97 | | RequestReassignment(this); |
| | 0 | 98 | | } |
| | | 99 | | |
| | | 100 | | // Check whether any targets are escaping from the interceptor. |
| | 0 | 101 | | if (EscapeDetector != null && HierarchicalAgent.Target != null && |
| | 0 | 102 | | !HierarchicalAgent.Target.IsTerminated) { |
| | 0 | 103 | | List<IHierarchical> targetHierarchicals = |
| | | 104 | | HierarchicalAgent.Target.LeafHierarchicals(activeOnly: true, withTargetOnly: false); |
| | 0 | 105 | | List<IHierarchical> escapingTargets = |
| | | 106 | | targetHierarchicals.Where(EscapeDetector.IsEscaping).ToList(); |
| | 0 | 107 | | foreach (var target in escapingTargets) { |
| | 0 | 108 | | SendReassignTargetRequest(target); |
| | 0 | 109 | | } |
| | 0 | 110 | | if (escapingTargets.Count == targetHierarchicals.Count) { |
| | 0 | 111 | | RequestReassignment(this); |
| | 0 | 112 | | } |
| | 0 | 113 | | } |
| | | 114 | | |
| | | 115 | | // Update the planned number of sub-interceptors remaining. |
| | | 116 | | // TODO(titan): Update the planned number of sub-interceptors remaining when the number of leaf |
| | | 117 | | // hierarchical objects changes, such as when a new target is added. |
| | 0 | 118 | | List<IHierarchical> leafHierarchicals = |
| | | 119 | | HierarchicalAgent.LeafHierarchicals(activeOnly: false, withTargetOnly: false); |
| | 0 | 120 | | NumSubInterceptorsPlannedRemaining = |
| | | 121 | | Mathf.Min(NumSubInterceptorsRemaining, NumSubInterceptors - leafHierarchicals.Count); |
| | | 122 | | |
| | | 123 | | // Navigate towards the target. |
| | 0 | 124 | | AccelerationInput = Controller?.Plan() ?? Vector3.zero; |
| | 0 | 125 | | Acceleration = Movement?.Act(AccelerationInput) ?? Vector3.zero; |
| | 0 | 126 | | _rigidbody.AddForce(Acceleration, ForceMode.Acceleration); |
| | 0 | 127 | | } |
| | | 128 | | |
| | 0 | 129 | | protected override void OnDestroy() { |
| | 0 | 130 | | base.OnDestroy(); |
| | | 131 | | |
| | 0 | 132 | | if (_unassignedTargetsCoroutine != null) { |
| | 0 | 133 | | StopCoroutine(_unassignedTargetsCoroutine); |
| | 0 | 134 | | _unassignedTargetsCoroutine = null; |
| | 0 | 135 | | } |
| | 0 | 136 | | } |
| | | 137 | | |
| | 0 | 138 | | protected override void UpdateAgentConfig() { |
| | 0 | 139 | | base.UpdateAgentConfig(); |
| | | 140 | | |
| | | 141 | | // Calculate the capacity. |
| | 0 | 142 | | int NumAgents(Configs.AgentConfig config) { |
| | 0 | 143 | | if (config == null || config.SubAgentConfig == null) { |
| | 0 | 144 | | return 1; |
| | | 145 | | } |
| | 0 | 146 | | return (int)config.SubAgentConfig.NumSubAgents * NumAgents(config.SubAgentConfig.AgentConfig); |
| | 0 | 147 | | } |
| | 0 | 148 | | Capacity = NumAgents(AgentConfig); |
| | 0 | 149 | | CapacityPerSubInterceptor = NumAgents(AgentConfig.SubAgentConfig?.AgentConfig); |
| | 0 | 150 | | NumSubInterceptors = (int)(AgentConfig.SubAgentConfig?.NumSubAgents ?? 0); |
| | 0 | 151 | | NumSubInterceptorsPlannedRemaining = NumSubInterceptors; |
| | 0 | 152 | | NumSubInterceptorsRemaining = NumSubInterceptors; |
| | | 153 | | |
| | | 154 | | // Set the controller. |
| | 0 | 155 | | switch (AgentConfig.DynamicConfig?.GuidanceConfig?.ControllerType) { |
| | 0 | 156 | | case Configs.ControllerType.Static: { |
| | 0 | 157 | | Controller = new StaticController(this); |
| | 0 | 158 | | break; |
| | | 159 | | } |
| | 0 | 160 | | case Configs.ControllerType.ProportionalNavigation: { |
| | 0 | 161 | | Controller = new PnController(this, _proportionalNavigationGain); |
| | 0 | 162 | | break; |
| | | 163 | | } |
| | 0 | 164 | | case Configs.ControllerType.AugmentedProportionalNavigation: { |
| | 0 | 165 | | Controller = new ApnController(this, _proportionalNavigationGain); |
| | 0 | 166 | | break; |
| | | 167 | | } |
| | 0 | 168 | | case Configs.ControllerType.Waypoint: { |
| | 0 | 169 | | Controller = new WaypointController(this); |
| | 0 | 170 | | break; |
| | | 171 | | } |
| | 0 | 172 | | default: { |
| | 0 | 173 | | Debug.LogWarning( |
| | | 174 | | $"Controller type {AgentConfig.DynamicConfig?.GuidanceConfig?.ControllerType} not found."); |
| | 0 | 175 | | Controller = null; |
| | 0 | 176 | | break; |
| | | 177 | | } |
| | | 178 | | } |
| | 0 | 179 | | } |
| | | 180 | | |
| | 0 | 181 | | protected override void OnDrawGizmos() { |
| | | 182 | | const float axisLength = 10f; |
| | | 183 | | |
| | 0 | 184 | | base.OnDrawGizmos(); |
| | | 185 | | |
| | 0 | 186 | | if (Application.isPlaying) { |
| | | 187 | | // Target. |
| | 0 | 188 | | if (HierarchicalAgent.Target != null && !HierarchicalAgent.Target.IsTerminated) { |
| | 0 | 189 | | Gizmos.color = new Color(1, 1, 1, 0.15f); |
| | 0 | 190 | | Gizmos.DrawLine(Position, HierarchicalAgent.Target.Position); |
| | 0 | 191 | | } |
| | | 192 | | |
| | | 193 | | // Up direction. |
| | 0 | 194 | | Gizmos.color = Color.yellow; |
| | 0 | 195 | | Gizmos.DrawRay(Position, Up * axisLength); |
| | | 196 | | |
| | | 197 | | // Forward direction. |
| | 0 | 198 | | Gizmos.color = Color.blue; |
| | 0 | 199 | | Gizmos.DrawRay(Position, Forward * axisLength); |
| | | 200 | | |
| | | 201 | | // Right direction. |
| | 0 | 202 | | Gizmos.color = Color.red; |
| | 0 | 203 | | Gizmos.DrawRay(Position, Right * axisLength); |
| | 0 | 204 | | } |
| | 0 | 205 | | } |
| | | 206 | | |
| | | 207 | | // If the interceptor collides with the ground or another agent, it will be terminated. It is |
| | | 208 | | // possible for an interceptor to collide with another interceptor or with a non-target threat. |
| | | 209 | | // The interceptor records a hit only if it collides with a threat and destroys it with the |
| | | 210 | | // threat's kill probability. |
| | 0 | 211 | | private void OnTriggerEnter(Collider other) { |
| | 0 | 212 | | if (CheckGroundCollision(other)) { |
| | 0 | 213 | | OnDestroyed?.Invoke(this); |
| | 0 | 214 | | Terminate(); |
| | 0 | 215 | | } |
| | | 216 | | |
| | 0 | 217 | | IAgent otherAgent = other.gameObject.GetComponentInParent<IAgent>(); |
| | 0 | 218 | | if (ShouldIgnoreCollision(otherAgent)) { |
| | 0 | 219 | | return; |
| | | 220 | | } |
| | | 221 | | // Check if the collision is with a threat. |
| | 0 | 222 | | if (otherAgent is IThreat threat) { |
| | | 223 | | // Check the kill probability. |
| | 0 | 224 | | float killProbability = threat.StaticConfig.HitConfig?.KillProbability ?? 1; |
| | 0 | 225 | | bool isHit = UnityEngine.Random.value <= killProbability; |
| | 0 | 226 | | if (isHit) { |
| | 0 | 227 | | threat.HandleIntercept(); |
| | 0 | 228 | | OnHit?.Invoke(this); |
| | 0 | 229 | | Terminate(); |
| | 0 | 230 | | } else { |
| | 0 | 231 | | OnMiss?.Invoke(this); |
| | 0 | 232 | | } |
| | 0 | 233 | | } |
| | 0 | 234 | | } |
| | | 235 | | |
| | 0 | 236 | | private void RegisterMiss(IInterceptor interceptor) { |
| | 0 | 237 | | RequestTargetReassignment(interceptor); |
| | | 238 | | |
| | | 239 | | // Request a new target from the parent interceptor. |
| | 0 | 240 | | } |
| | | 241 | | |
| | 0 | 242 | | private void RegisterDestroyed(IInterceptor interceptor) { |
| | 0 | 243 | | RequestTargetReassignment(interceptor); |
| | 0 | 244 | | } |
| | | 245 | | |
| | 0 | 246 | | private void RegisterMessageReceived(Message message) { |
| | 0 | 247 | | switch (message) { |
| | | 248 | | case AssignTargetRequestMessage request: |
| | 0 | 249 | | AssignSubInterceptor(request.PayloadData.SubInterceptor); |
| | 0 | 250 | | break; |
| | | 251 | | case AssignTargetResponseMessage response: |
| | | 252 | | // If the re-assigned target was not accepted, the fixed update loop will request another |
| | | 253 | | // target. |
| | 0 | 254 | | EvaluateReassignedTarget(response.PayloadData.Target); |
| | 0 | 255 | | break; |
| | | 256 | | case ReassignTargetRequestMessage request: |
| | 0 | 257 | | ReassignTarget(request.PayloadData.Target); |
| | 0 | 258 | | break; |
| | | 259 | | default: |
| | 0 | 260 | | Debug.LogWarning($"Message type {message.Type} is not valid."); |
| | 0 | 261 | | break; |
| | | 262 | | } |
| | 0 | 263 | | } |
| | | 264 | | |
| | 0 | 265 | | private void AssignSubInterceptor(IInterceptor subInterceptor) { |
| | 0 | 266 | | if (subInterceptor == null || subInterceptor.IsTerminated || |
| | 0 | 267 | | subInterceptor.CapacityRemaining <= 0) { |
| | 0 | 268 | | return; |
| | | 269 | | } |
| | | 270 | | |
| | | 271 | | // Find a new target for the sub-interceptor within the parent interceptor's assigned targets. |
| | 0 | 272 | | IHierarchical target = HierarchicalAgent.FindNewTarget(subInterceptor.HierarchicalAgent, |
| | | 273 | | subInterceptor.CapacityRemaining); |
| | 0 | 274 | | if (target != null && !target.IsTerminated) { |
| | 0 | 275 | | SendAssignTargetResponse(subInterceptor, target); |
| | 0 | 276 | | return; |
| | | 277 | | } |
| | | 278 | | |
| | | 279 | | // Propagate the sub-interceptor target assignment to the parent interceptor above. |
| | 0 | 280 | | SendAssignTargetRequest(subInterceptor); |
| | 0 | 281 | | } |
| | | 282 | | |
| | | 283 | | // Evaluate whether the interceptor should be reassigned to the new target. |
| | 0 | 284 | | private void EvaluateReassignedTarget(IHierarchical target) { |
| | 0 | 285 | | if (target == null || target.IsTerminated) { |
| | 0 | 286 | | return; |
| | | 287 | | } |
| | | 288 | | |
| | | 289 | | // If the interceptor has no target, always accept the new target. |
| | 0 | 290 | | if (HierarchicalAgent.Target == null || HierarchicalAgent.Target.IsTerminated) { |
| | 0 | 291 | | HierarchicalAgent.Target = target; |
| | 0 | 292 | | return; |
| | | 293 | | } |
| | | 294 | | |
| | | 295 | | // Accept the new target if the intercept speed is higher. |
| | 0 | 296 | | float currentFractionalSpeed = |
| | | 297 | | FractionalSpeed.Calculate(this, HierarchicalAgent.Target.Position); |
| | 0 | 298 | | float newFractionalSpeed = FractionalSpeed.Calculate(this, target.Position); |
| | 0 | 299 | | if (newFractionalSpeed > currentFractionalSpeed) { |
| | 0 | 300 | | HierarchicalAgent.Target = target; |
| | 0 | 301 | | } |
| | 0 | 302 | | } |
| | | 303 | | |
| | 0 | 304 | | private void ReassignTarget(IHierarchical target) { |
| | | 305 | | // If a target needs to be re-assigned, the interceptor should in the following order: |
| | | 306 | | // 1. Queue up the unassigned targets in preparation of launching an additional |
| | | 307 | | // sub-interceptor. |
| | | 308 | | // 2. If no existing sub-interceptor has been assigned to pursue the queued target(s), launch |
| | | 309 | | // another sub-interceptor(s) to pursue the target(s). |
| | | 310 | | // 3. Propagate the target re-assignment to the parent interceptor above. |
| | 0 | 311 | | if (CapacityPlannedRemaining <= 0) { |
| | 0 | 312 | | SendReassignTargetRequest(target); |
| | 0 | 313 | | return; |
| | | 314 | | } |
| | | 315 | | |
| | 0 | 316 | | _unassignedTargets.Add(target); |
| | 0 | 317 | | } |
| | | 318 | | |
| | 0 | 319 | | private void RequestTargetReassignment(IInterceptor interceptor) { |
| | | 320 | | // Request the parent interceptor to re-assign the target to another interceptor if there are no |
| | | 321 | | // other pursuers. |
| | 0 | 322 | | IHierarchical target = interceptor.HierarchicalAgent.Target; |
| | 0 | 323 | | if (target == null || target.IsTerminated) { |
| | 0 | 324 | | return; |
| | | 325 | | } |
| | 0 | 326 | | List<IHierarchical> targetHierarchicals = |
| | | 327 | | target.LeafHierarchicals(activeOnly: true, withTargetOnly: false); |
| | 0 | 328 | | foreach (var targetHierarchical in targetHierarchicals) { |
| | 0 | 329 | | SendReassignTargetRequest(targetHierarchical); |
| | 0 | 330 | | } |
| | | 331 | | |
| | 0 | 332 | | RequestReassignment(interceptor); |
| | 0 | 333 | | } |
| | | 334 | | |
| | 0 | 335 | | private void RequestReassignment(IInterceptor interceptor) { |
| | 0 | 336 | | if (interceptor.IsReassignable) { |
| | | 337 | | // Request a new target from the parent interceptor. |
| | 0 | 338 | | SendAssignTargetRequest(interceptor); |
| | 0 | 339 | | } |
| | 0 | 340 | | } |
| | | 341 | | |
| | 0 | 342 | | private IEnumerator UnassignedTargetsManager(float period) { |
| | 0 | 343 | | while (true) { |
| | 0 | 344 | | yield return new WaitUntil(() => _unassignedTargets.Count > 0); |
| | 0 | 345 | | yield return new WaitForSeconds(period); |
| | | 346 | | |
| | 0 | 347 | | IEnumerable<IHierarchical> unassignedTargets = _unassignedTargets.ToList(); |
| | 0 | 348 | | _unassignedTargets.Clear(); |
| | | 349 | | |
| | | 350 | | // Check whether the unassigned targets are still unassigned or are escaping the assigned |
| | | 351 | | // pursuers. |
| | 0 | 352 | | var filteredTargets = |
| | | 353 | | unassignedTargets |
| | 0 | 354 | | .Where(target => !target.IsTerminated && target.ActivePursuers.All(pursuer => { |
| | 0 | 355 | | var pursuerAgent = pursuer as HierarchicalAgent; |
| | 0 | 356 | | var interceptor = pursuerAgent?.Agent as IInterceptor; |
| | 0 | 357 | | return interceptor == null || interceptor.CapacityRemaining == 0 || |
| | | 358 | | (interceptor.EscapeDetector?.IsEscaping(target) ?? true); |
| | 0 | 359 | | })) |
| | | 360 | | .ToList(); |
| | 0 | 361 | | if (filteredTargets.Count > CapacityPlannedRemaining) { |
| | | 362 | | // If there are more unassigned targets than the capacity remaining, propagate the target |
| | | 363 | | // re-assignment to the parent interceptor for the excess targets. |
| | 0 | 364 | | var orderedTargets = |
| | 0 | 365 | | filteredTargets.OrderBy(target => Vector3.Distance(Position, target.Position)); |
| | 0 | 366 | | var excessTargets = orderedTargets.Skip(CapacityPlannedRemaining); |
| | 0 | 367 | | foreach (var target in excessTargets) { |
| | 0 | 368 | | SendReassignTargetRequest(target); |
| | 0 | 369 | | } |
| | 0 | 370 | | unassignedTargets = orderedTargets.Take(CapacityPlannedRemaining); |
| | 0 | 371 | | } else { |
| | 0 | 372 | | unassignedTargets = filteredTargets; |
| | 0 | 373 | | } |
| | 0 | 374 | | if (!unassignedTargets.Any()) { |
| | 0 | 375 | | continue; |
| | | 376 | | } |
| | | 377 | | |
| | | 378 | | // Create a new hierarchical object with the cluster of unassigned targets as the target. |
| | 0 | 379 | | var newTargetSubHierarchical = new HierarchicalBase(); |
| | 0 | 380 | | int numUnassignedTargets = 0; |
| | 0 | 381 | | foreach (var target in unassignedTargets) { |
| | 0 | 382 | | newTargetSubHierarchical.AddSubHierarchical(target); |
| | 0 | 383 | | ++numUnassignedTargets; |
| | 0 | 384 | | } |
| | 0 | 385 | | var newSubHierarchical = new HierarchicalBase { Target = newTargetSubHierarchical }; |
| | 0 | 386 | | HierarchicalAgent.AddSubHierarchical(newSubHierarchical); |
| | 0 | 387 | | Debug.Log($"Reclustered {numUnassignedTargets} target(s) into a new cluster for {this}."); |
| | 0 | 388 | | UIManager.Instance.LogActionMessage( |
| | | 389 | | $"[IADS] Reclustered {numUnassignedTargets} target(s) into a new cluster for {this}."); |
| | | 390 | | |
| | | 391 | | // Recursively cluster the newly assigned targets. |
| | 0 | 392 | | newSubHierarchical.RecursiveCluster(maxClusterSize: CapacityPerSubInterceptor); |
| | 0 | 393 | | } |
| | | 394 | | } |
| | | 395 | | |
| | 0 | 396 | | private void SendAssignTargetRequest(IInterceptor subInterceptor) { |
| | 0 | 397 | | CommsManager.Instance.SendMessage( |
| | | 398 | | new AssignTargetRequestMessage(CommsNode, ParentCommsNode, subInterceptor)); |
| | 0 | 399 | | } |
| | | 400 | | |
| | 0 | 401 | | private void SendAssignTargetResponse(IInterceptor subInterceptor, IHierarchical target) { |
| | 0 | 402 | | CommsManager.Instance.SendMessage( |
| | | 403 | | new AssignTargetResponseMessage(CommsNode, subInterceptor.CommsNode, target)); |
| | 0 | 404 | | } |
| | | 405 | | |
| | 0 | 406 | | private void SendReassignTargetRequest(IHierarchical target) { |
| | 0 | 407 | | CommsManager.Instance.SendMessage( |
| | | 408 | | new ReassignTargetRequestMessage(CommsNode, ParentCommsNode, target)); |
| | 0 | 409 | | } |
| | | 410 | | } |