mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
docs: apply suggestions from copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -304,14 +304,10 @@ namespace PepperDash.Essentials.Core
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the join number for the join with the specified key
|
/// Returns the join span for the join with the specified key
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="key"></param>
|
/// <param name="key"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
//public uint GetJoinForKey(string key)
|
|
||||||
//{
|
|
||||||
// return Joins.ContainsKey(key) ? Joins[key].JoinNumber : 0;
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -95,9 +95,8 @@ namespace PepperDash.Essentials.Core
|
|||||||
/// Releases the usage tracking for the route and optionally clears the route on the switching devices.
|
/// Releases the usage tracking for the route and optionally clears the route on the switching devices.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="clearRoute">If true, attempts to clear the route on the switching devices (e.g., set input to null/0).</param>
|
/// <param name="clearRoute">If true, attempts to clear the route on the switching devices (e.g., set input to null/0).</param>
|
||||||
/// <summary>
|
|
||||||
/// ReleaseRoutes method
|
|
||||||
/// </summary>
|
|
||||||
public void ReleaseRoutes(bool clearRoute = false)
|
public void ReleaseRoutes(bool clearRoute = false)
|
||||||
{
|
{
|
||||||
foreach (var route in Routes.Where(r => r.SwitchingDevice is IRouting))
|
foreach (var route in Routes.Where(r => r.SwitchingDevice is IRouting))
|
||||||
@@ -138,9 +137,9 @@ namespace PepperDash.Essentials.Core
|
|||||||
/// Returns a string representation of the route descriptor, including source, destination, and individual route steps.
|
/// Returns a string representation of the route descriptor, including source, destination, and individual route steps.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>A string describing the route.</returns>
|
/// <returns>A string describing the route.</returns>
|
||||||
/// <summary>
|
|
||||||
/// ToString method
|
|
||||||
/// </summary>
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
var routesText = Routes.Select(r => r.ToString()).ToArray();
|
var routesText = Routes.Select(r => r.ToString()).ToArray();
|
||||||
|
|||||||
@@ -64,8 +64,11 @@ namespace PepperDash.Essentials.Core
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// RemoveRouteDescriptor method
|
/// Removes a RouteDescriptor from the collection based on the specified destination and input port key.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="destination">The destination for which the route descriptor is to be removed.</param>
|
||||||
|
/// <param name="inputPortKey">The key of the input port associated with the route descriptor. If empty, the method will attempt to remove a descriptor based solely on the destination.</param>
|
||||||
|
/// <returns>The removed RouteDescriptor object if a matching descriptor was found; otherwise, null.</returns>
|
||||||
public RouteDescriptor RemoveRouteDescriptor(IRoutingInputs destination, string inputPortKey = "")
|
public RouteDescriptor RemoveRouteDescriptor(IRoutingInputs destination, string inputPortKey = "")
|
||||||
{
|
{
|
||||||
Debug.LogMessage(LogEventLevel.Information, "Removing route descriptor for '{destination}':'{inputPortKey}'", destination.Key ?? null, string.IsNullOrEmpty(inputPortKey) ? "auto" : inputPortKey);
|
Debug.LogMessage(LogEventLevel.Information, "Removing route descriptor for '{destination}':'{inputPortKey}'", destination.Key ?? null, string.IsNullOrEmpty(inputPortKey) ? "auto" : inputPortKey);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
namespace PepperDash.Essentials.Core
|
namespace PepperDash.Essentials.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a RoutingPortCollection
|
/// Represents a RoutingPortCollection, which is essentially a List with an indexer for case-insensitive lookup of ports by their key names.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RoutingPortCollection<T> : List<T> where T: RoutingPort
|
public class RoutingPortCollection<T> : List<T> where T: RoutingPort
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -128,7 +128,8 @@ namespace PepperDash.Essentials.Core
|
|||||||
//********************************************************************************
|
//********************************************************************************
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a TieLineCollection
|
/// Represents a collection of <see cref="TieLine"/> objects, which define signal paths for routing algorithms.
|
||||||
|
/// This class provides functionality for managing tie lines and includes a singleton instance for global access.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class TieLineCollection : List<TieLine>
|
public class TieLineCollection : List<TieLine>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace PepperDash.Essentials.Core.Config
|
|||||||
public string SourceCard { get; set; }
|
public string SourceCard { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the SourcePort
|
/// The key of the source output port, used for routing configurations.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string SourcePort { get; set; }
|
public string SourcePort { get; set; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user