#include <node_distance_estimate.h>


Public Member Functions | |
| virtual | ~NodeDistanceEstimate () |
| Does nothing, required because of the virtual methods. | |
| virtual bool | estimate_distance (const Node &source, const Node &target, double &result) const =0 throw () |
std::string dist_est_name = se.required_string_param("myapp_dist_est"); shawn::ConstNodeDistanceEstimateHandle dist_est_ = owner().world().simulation_controller().distance_estimate_keeper().find(dist_est_name); | virtual shawn::NodeDistanceEstimate::~NodeDistanceEstimate | ( | ) | [virtual] |
Does nothing, required because of the virtual methods.
| virtual bool shawn::NodeDistanceEstimate::estimate_distance | ( | const Node & | source, | |
| const Node & | target, | |||
| double & | result | |||
| ) | const throw () [pure virtual] |
Estimates the distance between two nodes source and target.
| source | The source node for the estimation | |
| target | The destination node for the estimation | |
| result | The result of the estimation will be placed here ONLY IF true is returned |
Implemented in shawn::PerfectDistanceEstimate, and shawn::RandomizedDistanceEstimate.
1.5.6