|
AntHocNet 2.0.0
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
|
Optional observer the core notifies of routing events (item 15). More...
#include <anthocnet/core/ports.h>
Public Member Functions | |
| virtual | ~IRouterObserver ()=default |
| virtual void | onAntSent (AntType, AntDirection, bool) |
| This node put an ant on the medium (origination or forwarding). | |
| virtual void | onAntReceived (AntType, AntDirection) |
| This node processed a (non-duplicate) received ant. | |
| virtual void | onRouteChanged (NodeAddress, NodeAddress, bool) |
| A neighbour/route entry was added (true) or removed (false). | |
Optional observer the core notifies of routing events (item 15).
It only reports — it never makes routing decisions or does I/O, so the core stays pure. Adapters implement it to fan events out to their native trace machinery (ns-3 TracedCallback, ns-2 trace lines). All methods default to no-ops; when no observer is set the core pays only a null-pointer check.
|
virtualdefault |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |