| | | 1 | | // The planner release strategy uses a launch planner to determine when to launch an interceptor |
| | | 2 | | // against an incoming target. |
| | | 3 | | public class PlannerReleaseStrategy : SingleReleaseStrategyBase { |
| | 0 | 4 | | public ILaunchPlanner Planner { get; init; } |
| | | 5 | | |
| | 0 | 6 | | public PlannerReleaseStrategy(IAgent agent, ILaunchPlanner planner) : base(agent) { |
| | 0 | 7 | | Planner = planner; |
| | 0 | 8 | | } |
| | | 9 | | |
| | 0 | 10 | | protected override LaunchPlan PlanRelease(IHierarchical target) { |
| | 0 | 11 | | Planner.Predictor.Hierarchical = target; |
| | 0 | 12 | | return Planner.Plan(); |
| | 0 | 13 | | } |
| | | 14 | | } |