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

From string

The Id it starts at.

To string

The Id it ends at.

Status string

Its state; Unreachable when From cannot reach To.

Label string

What to show on it.

Properties

From

The Id it starts at.

public string From { get; init; }

Property Value

string

Label

What to show on it.

public string? Label { get; init; }

Property Value

string

Status

Its state; Unreachable when From cannot reach To.

public string? Status { get; init; }

Property Value

string

To

The Id it ends at.

public string To { get; init; }

Property Value

string

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

From string
To string
Status string
Label string

Equals(BowireTopologyEdge?)

public bool Equals(BowireTopologyEdge? other)

Parameters

other BowireTopologyEdge

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireTopologyEdge?, BowireTopologyEdge?)

public static bool operator ==(BowireTopologyEdge? left, BowireTopologyEdge? right)

Parameters

left BowireTopologyEdge
right BowireTopologyEdge

Returns

bool

operator !=(BowireTopologyEdge?, BowireTopologyEdge?)

public static bool operator !=(BowireTopologyEdge? left, BowireTopologyEdge? right)

Parameters

left BowireTopologyEdge
right BowireTopologyEdge

Returns

bool