< Summary

Class:AssignTargetRequestPayload
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Communication/MessagePayload.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:33
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AssignTargetRequestPayload(...)0%6200%

File(s)

/github/workspace/Assets/Scripts/Communication/MessagePayload.cs

#LineLine coverage
 1// The message payload defines different types of payloads carried by messages.
 2
 3using System;
 4
 5// The payload carries the sub-interceptor that is requesting a parent interceptor or IADS for a new
 6// target assignment.
 7public sealed class AssignTargetRequestPayload : IMessagePayload {
 08  public IInterceptor SubInterceptor { get; }
 9
 010  public AssignTargetRequestPayload(IInterceptor subInterceptor) {
 011    SubInterceptor = subInterceptor ?? throw new ArgumentNullException(nameof(subInterceptor));
 012  }
 13}
 14
 15// The payload carries the target that a parent interceptor or IADS has selected for a requesting
 16// sub-interceptor.
 17public sealed class AssignTargetResponsePayload : IMessagePayload {
 18  public IHierarchical Target { get; }
 19
 20  public AssignTargetResponsePayload(IHierarchical target) {
 21    Target = target ?? throw new ArgumentNullException(nameof(target));
 22  }
 23}
 24
 25// The payload carries the target that a sub-interceptor is requesting its parent interceptor or
 26// IADS to reassign.
 27public sealed class ReassignTargetRequestPayload : IMessagePayload {
 28  public IHierarchical Target { get; }
 29
 30  public ReassignTargetRequestPayload(IHierarchical target) {
 31    Target = target ?? throw new ArgumentNullException(nameof(target));
 32  }
 33}