LinkStateAdvertisement<T> class

Represents a link-state advertisement (LSA) with network information

Constructors

LinkStateAdvertisement({required T routerId, required T networkId, required num linkCost, required LinkStateType linkType, required DateTime timestamp, required int sequenceNumber, int age = 0})
const

Properties

age int
final
hashCode int
The hash code for this object.
no setteroverride
linkCost num
final
linkType LinkStateType
final
networkId → T
final
routerId → T
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequenceNumber int
final
timestamp DateTime
final

Methods

copyWith({T? routerId, T? networkId, num? linkCost, LinkStateType? linkType, DateTime? timestamp, int? sequenceNumber, int? age}) LinkStateAdvertisement<T>
Creates a copy with updated values
incrementAge() LinkStateAdvertisement<T>
Increments the age of the LSA
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