Class BowireTopologyEdge
- Namespace
- Kuestenlogik.Bowire.Topology
- Assembly
- Kuestenlogik.Bowire.dll
A connection between two nodes of a BowireTopology.
public sealed record BowireTopologyEdge : IEquatable<BowireTopologyEdge>
- Inheritance
-
BowireTopologyEdge
- Implements
- Inherited Members
Constructors
BowireTopologyEdge(string, string, string?, string?)
A connection between two nodes of a BowireTopology.
public BowireTopologyEdge(string From, string To, string? Status = "up", string? Label = null)
Parameters
FromstringThe Id it starts at.
TostringThe Id it ends at.
StatusstringIts state; Unreachable when
Fromcannot reachTo.LabelstringWhat to show on it.
Properties
From
The Id it starts at.
public string From { get; init; }
Property Value
Label
What to show on it.
public string? Label { get; init; }
Property Value
Status
Its state; Unreachable when From cannot reach To.
public string? Status { get; init; }
Property Value
To
The Id it ends at.
public string To { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out string?, out string?)
public void Deconstruct(out string From, out string To, out string? Status, out string? Label)
Parameters
Equals(BowireTopologyEdge?)
public bool Equals(BowireTopologyEdge? other)
Parameters
otherBowireTopologyEdge
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireTopologyEdge?, BowireTopologyEdge?)
public static bool operator ==(BowireTopologyEdge? left, BowireTopologyEdge? right)
Parameters
leftBowireTopologyEdgerightBowireTopologyEdge
Returns
operator !=(BowireTopologyEdge?, BowireTopologyEdge?)
public static bool operator !=(BowireTopologyEdge? left, BowireTopologyEdge? right)
Parameters
leftBowireTopologyEdgerightBowireTopologyEdge