#include <AbstractHeuristic.h>
Public Member Functions | |
AbstractHeuristic (std::string pDescription) | |
virtual void | apply (std::vector< boost::shared_ptr< TreeNode > > pNodes) |
virtual void | apply (std::vector< boost::shared_ptr< TreeNode > > pNodes, boost::shared_ptr< TreeNode > pChild) |
virtual boost::shared_ptr< TreeNode > | getBestCluster () |
virtual boost::shared_ptr< TreeNode > | getBestParentNode () |
bool | operator< (const AbstractHeuristic &heuristic) const |
void | reset () |
virtual | ~AbstractHeuristic () |
Protected Attributes | |
std::vector< boost::shared_ptr< TreeNode > > | candidates |
double | score |
Private Attributes | |
std::string | mDescription |
An abstract interface for a clustering heuristic used to create clusters for building the tree.
Definition at line 36 of file AbstractHeuristic.h.
SceneModel::AbstractHeuristic::AbstractHeuristic | ( | std::string | pDescription | ) |
Constructor.
pDescription | Description of the heuristic. |
Definition at line 22 of file AbstractHeuristic.cpp.
|
virtual |
Destructor.
Definition at line 28 of file AbstractHeuristic.cpp.
|
virtual |
Applies the heuristic to the trajectory set.
pNodes | The set of nodes containing the trajectories that this heuristic should be applied to. |
Reimplemented in SceneModel::DirectionRelationHeuristic.
Definition at line 33 of file AbstractHeuristic.cpp.
|
virtual |
Applies the heuristic to the trajectory set, specifies the child node.
pNodes | The set of nodes containing the trajectories that this heuristic should be applied to. |
pChild | The node that should act as child node. |
Reimplemented in SceneModel::DirectionRelationHeuristic.
Definition at line 38 of file AbstractHeuristic.cpp.
|
virtual |
Returns the best cluster found by the heuristic.
Reimplemented in SceneModel::DirectionRelationHeuristic.
Definition at line 43 of file AbstractHeuristic.cpp.
|
virtual |
Returns the best parent node calculated for the node specified before.
Reimplemented in SceneModel::DirectionRelationHeuristic.
Definition at line 49 of file AbstractHeuristic.cpp.
bool SceneModel::AbstractHeuristic::operator< | ( | const AbstractHeuristic & | heuristic | ) | const |
Operator overwrite for heuristic comparison.
Definition at line 61 of file AbstractHeuristic.cpp.
void SceneModel::AbstractHeuristic::reset | ( | ) |
Resets the heuristic.
Definition at line 55 of file AbstractHeuristic.cpp.
|
protected |
A list of candidates for the best cluster.
Definition at line 106 of file AbstractHeuristic.h.
|
private |
Description of the heuristic.
Definition at line 95 of file AbstractHeuristic.h.
|
protected |
The score for the best cluster.
Definition at line 101 of file AbstractHeuristic.h.