-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR releases version 4.2.0 of the IBI.WZDx library which updates the models in accordance with WZDx 4.2.
- Loading branch information
Showing
11 changed files
with
168 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using IBI.WZDx.Equality; | ||
|
||
namespace IBI.WZDx.Models.RoadEvents; | ||
|
||
/// <summary> | ||
/// Describes specific curb zones that are impacted by a work zone via an external reference to the | ||
/// curb data specification's | ||
/// <see href="https://github.com/openmobilityfoundation/curb-data-specification/tree/main/curbs#curb-zone"> | ||
/// Curb API | ||
/// </see>. | ||
/// </summary> | ||
/// <param name="CdsCurbZoneIds">A list of | ||
/// <see href="https://github.com/openmobilityfoundation/curb-data-specification/tree/main/curbs#curb-zone"> | ||
/// CDS Curb Zone | ||
/// </see> | ||
/// <c>id</c>s.</param> | ||
/// <param name="CdsCurbsApiUrl">An identifier for the source of the requested CDS Curbs API.</param> | ||
public record CdsCurbZonesReference( | ||
IEnumerable<string> CdsCurbZoneIds, | ||
string CdsCurbsApiUrl | ||
) | ||
{ | ||
/// <summary> | ||
/// Determine if another <see cref="CdsCurbZonesReference"/> is equal to this <see cref="CdsCurbZonesReference"/>. | ||
/// </summary> | ||
public virtual bool Equals(CdsCurbZonesReference? other) | ||
{ | ||
return other != null | ||
&& CdsCurbZoneIds.NullHandlingSequenceEqual(other.CdsCurbZoneIds) | ||
&& CdsCurbsApiUrl == other.CdsCurbsApiUrl; | ||
} | ||
|
||
/// <inheritdoc/> | ||
public override int GetHashCode() | ||
{ | ||
var hash = new HashCode(); | ||
|
||
foreach (string id in CdsCurbZoneIds) | ||
{ | ||
hash.Add(id); | ||
} | ||
|
||
hash.Add(CdsCurbsApiUrl); | ||
|
||
return hash.ToHashCode(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using IBI.WZDx.Models.RoadEvents.WorkZones; | ||
|
||
namespace IBI.WZDx.Models.RoadEvents; | ||
|
||
/// <summary> | ||
/// The type of <see cref="WorkZoneRoadEvent"/>. | ||
/// </summary> | ||
public enum WorkZoneType | ||
{ | ||
/// <summary> | ||
/// The road event is statically placed and is not moving. | ||
/// </summary> | ||
Static, | ||
|
||
/// <summary> | ||
/// The road event is actively moving on the roadway. | ||
/// </summary> | ||
/// <remarks> | ||
/// As opposed to <see cref="PlannedMovingArea"/>, the road event geometry changes at the operation moves. | ||
/// </remarks> | ||
Moving, | ||
|
||
/// <summary> | ||
/// The road event is the planned extent of a moving operation. The active work area will be | ||
/// somewhere within this road event. | ||
/// </summary> | ||
/// <remarks> | ||
/// As opposed to <see cref="Moving"/>, the road event geometry typically does not actively change. | ||
/// </remarks> | ||
PlannedMovingArea | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters