feat: publish rolling trajectories without stop tails
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user