RIPAlgorithm<T> class

RIP Algorithm implementation with configurable parameters

Constructors

RIPAlgorithm({Duration updateInterval = _defaultUpdateInterval, Duration routeTimeout = _routeTimeout, Duration garbageCollectionTimeout = _garbageCollectionTimeout, int maxIterations = 100})
Creates a RIP algorithm instance with configurable parameters
const

Properties

garbageCollectionTimeout → Duration
final
hashCode → int
The hash code for this object.
no setterinherited
maxIterations → int
final
routeTimeout → Duration
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updateInterval → Duration
final

Methods

cleanupStaleRoutes(RoutingTable<T> routingTable, DateTime currentTime) → RoutingTable<T>
Removes stale routes and performs garbage collection
computeRoutes(Map<T, Map<T, num>> network, T sourceNode, {int maxHops = _maxHops}) → RoutingTable<T>
Computes complete routing table for a source node
getRouteStatistics(RoutingTable<T> routingTable) → Map<String, dynamic>
Gets route statistics for monitoring and analysis
needsUpdate(RoutingTable<T> routingTable, DateTime currentTime) → bool
Checks if routing table needs updating based on time intervals
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateRoutes(RoutingTable<T> currentTable, Map<T, RouteEntry<T>> advertisements, T neighbor, int neighborCost) → RoutingTable<T>
Updates routing table based on received route advertisements
validateRoutingTable(RoutingTable<T> routingTable, Map<T, Map<T, num>> network) → List<String>
Validates routing table consistency and integrity

Operators

operator ==(Object other) → bool
The equality operator.
inherited