DistanceVectorRoutingTable<T> class
Represents a complete distance-vector routing table
Constructors
-
DistanceVectorRoutingTable({required T sourceNode, required Map<
T, DistanceVectorRouteEntry< routes, required Map<T> >T, NeighborAdvertisement< neighborAdvertisements, required DateTime lastUpdate, required int totalRoutes, required int totalNeighbors})T> > -
const
Properties
-
allRoutes
→ List<
DistanceVectorRouteEntry< T> > -
Gets all routes as a list
no setter
-
directlyConnectedRoutes
→ List<
DistanceVectorRouteEntry< T> > -
Gets directly connected routes
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastUpdate → DateTime
-
final
-
neighborAdvertisements
→ Map<
T, NeighborAdvertisement< T> > -
final
-
neighbors
→ Set<
T> -
Gets all neighbor nodes
no setter
- routeCount → int
-
Gets the number of routes
no setter
-
routes
→ Map<
T, DistanceVectorRouteEntry< T> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceNode → T
-
final
- totalNeighbors → int
-
final
- totalRoutes → int
-
final
-
validRoutes
→ List<
DistanceVectorRouteEntry< T> > -
Gets all valid routes (not stale)
no setter
Methods
-
getRoute(
T destination) → DistanceVectorRouteEntry< T> ? - Gets the route to a specific destination
-
getRoutesByCost(
num maxCost) → List< DistanceVectorRouteEntry< T> > - Gets routes with cost less than or equal to maxCost
-
getRoutesByHopCount(
int hopCount) → List< DistanceVectorRouteEntry< T> > - Gets routes with specific hop count
-
getRoutesFromNeighbor(
T neighbor) → List< DistanceVectorRouteEntry< T> > - Gets routes from a specific neighbor
-
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.
inherited