LinkStateRouteEntry<T> class
Represents a routing table entry with complete path information
Constructors
-
LinkStateRouteEntry({required T destination, T? nextHop, required num cost, required List<
T> path, required DateTime lastUpdate, required bool isDirectlyConnected, required LinkStateStatus linkStatus}) -
const
Properties
- cost → num
-
final
- destination → T
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hopCount → int
-
Gets the hop count (path length - 1)
no setter
- isActive → bool
-
Checks if the route is active
no setter
- isDirectlyConnected → bool
-
final
- lastUpdate → DateTime
-
final
- linkStatus → LinkStateStatus
-
final
- nextHop → T?
-
final
-
path
→ List<
T> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{T? destination, T? nextHop, num? cost, List< T> ? path, DateTime? lastUpdate, bool? isDirectlyConnected, LinkStateStatus? linkStatus}) → LinkStateRouteEntry<T> - Creates a copy with updated values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override