feat: publish rolling trajectories without stop tails

This commit is contained in:
梁薄云
2026-08-05 20:00:11 +08:00
parent 72592f0cae
commit 4159ae0bc1
9 changed files with 196 additions and 50 deletions
@@ -15,7 +15,8 @@ public sealed class EmTrajectoryMetadata
string previousTrajectoryId,
int segmentIndex,
TravelDirection direction,
EmTerminalType terminalType)
EmTerminalType terminalType,
EmLongitudinalMode longitudinalMode)
{
if (string.IsNullOrWhiteSpace(trajectoryId))
throw new ArgumentException("A trajectory ID is required.", nameof(trajectoryId));
@@ -31,6 +32,8 @@ public sealed class EmTrajectoryMetadata
throw new ArgumentOutOfRangeException(nameof(direction));
if (!Enum.IsDefined(typeof(EmTerminalType), terminalType))
throw new ArgumentOutOfRangeException(nameof(terminalType));
if (!Enum.IsDefined(typeof(EmLongitudinalMode), longitudinalMode))
throw new ArgumentOutOfRangeException(nameof(longitudinalMode));
TrajectoryId = trajectoryId;
GeneratedAtUtc = generatedAtUtc;
@@ -42,6 +45,7 @@ public sealed class EmTrajectoryMetadata
SegmentIndex = segmentIndex;
Direction = direction;
TerminalType = terminalType;
LongitudinalMode = longitudinalMode;
}
public string TrajectoryId { get; }
@@ -54,4 +58,5 @@ public sealed class EmTrajectoryMetadata
public int SegmentIndex { get; }
public TravelDirection Direction { get; }
public EmTerminalType TerminalType { get; }
public EmLongitudinalMode LongitudinalMode { get; }
}