DistanceVectorRouteEntry<T> class
Represents a distance-vector route entry with neighbor-based information
Constructors
Properties
- advertisingNeighbor → T
-
final
-
attributes
→ Map<
String, dynamic> -
final
- cost → num
-
final
- destination → T
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hopCount → int
-
final
- isDirectlyConnected → bool
-
final
- isStale → bool
-
Checks if the route is stale based on timeout
no setter
- isValid → bool
-
Checks if the route is valid (not stale and reasonable cost)
no setter
- lastUpdate → DateTime
-
final
- nextHop → T?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{T? destination, T? nextHop, num? cost, DateTime? lastUpdate, bool? isDirectlyConnected, T? advertisingNeighbor, int? hopCount, Map< String, dynamic> ? attributes}) → DistanceVectorRouteEntry<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
-
updateFromNeighbor(
T neighbor, num newCost, int newHopCount) → DistanceVectorRouteEntry< T> - Updates the route with new information from a neighbor
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override