35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using RobotNet10.FleetManager.Services.TrafficControl.Models;
|
|
|
|
namespace RobotNet10.FleetManager.Services.TrafficControl.Services;
|
|
|
|
/// <summary>
|
|
/// Service for generating and sending OrderUpdate messages
|
|
/// </summary>
|
|
public interface IOrderUpdateService
|
|
{
|
|
/// <summary>
|
|
/// Generate OrderUpdate from Horizon segments and send to robot
|
|
/// </summary>
|
|
Task<bool> GenerateAndSendOrderUpdateAsync(
|
|
string robotId,
|
|
RobotRoute route,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
/// <summary>
|
|
/// Send OrderUpdate to robot (general method for adding new segments)
|
|
/// </summary>
|
|
Task<bool> SendOrderUpdateAsync(
|
|
string robotId,
|
|
List<RouteSegment> newSegments,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
/// <summary>
|
|
/// Send initial Order to robot (Base segments only)
|
|
/// </summary>
|
|
Task<bool> SendInitialOrderAsync(
|
|
string robotId,
|
|
RobotRoute route,
|
|
CancellationToken cancellationToken = default);
|
|
}
|
|
|