|
WSF
|
#include <WsfCommRoutingAlgorithmLibrary.hpp>
Inherits graph::GraphImpl::cost_func.
Public Member Functions | |
| LeastHops ()=default | |
| ~LeastHops () override=default | |
| double | operator() (const graph::Edge &aEdge, const graph::Node &aSourceNode, const graph::Node &aDestinationNode) const override |
| double | operator() (const graph::Node &aSourceNode, const graph::Node &aDestinationNode) const override |
| bool | consider_node (const graph::Node &aNode) const override |
This header provides some pre-defined routing algorithm classes for use with protocol implementations for correct pathfinding of a WsfCommGraph object. Users should extend this namespace for use of custom defined algorithm classes.
The least hops class finds the shortest path based on the least amount of edges traversed to the destination, regardless of edge cost.
|
default |
|
overridedefault |
|
inlineoverride |
References wsf::comm::graph::Node::IsEnabled().
|
inlineoverride |
References wsf::comm::graph::Edge::IsEnabled().
|
inlineoverride |