36 lines
883 B
C#
36 lines
883 B
C#
namespace RobotNet10.FleetManager.Services.TrafficControl.Models;
|
|
|
|
/// <summary>
|
|
/// Represents a resolution strategy for a conflict
|
|
/// </summary>
|
|
public class ConflictResolution
|
|
{
|
|
/// <summary>
|
|
/// Resolution strategy (WaitAtNode or Reroute)
|
|
/// </summary>
|
|
public ResolutionStrategy Strategy { get; set; }
|
|
|
|
/// <summary>
|
|
/// Robot ID that needs to take action
|
|
/// </summary>
|
|
public string ActionRobotId { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Specific action to take
|
|
/// </summary>
|
|
public ResolutionAction Action { get; set; }
|
|
|
|
/// <summary>
|
|
/// Wait until this time (if action is Wait)
|
|
/// </summary>
|
|
public DateTime? WaitUntil { get; set; }
|
|
|
|
/// <summary>
|
|
/// New route (if action is Reroute)
|
|
/// </summary>
|
|
public RobotRoute? NewRoute { get; set; }
|
|
}
|
|
|
|
|
|
|