bpp-phyl
2.2.0
|
NNI topology search method. More...
#include <Bpp/Phyl/NNITopologySearch.h>
Public Member Functions | |
NNITopologySearch (NNISearchable &tree, const std::string &algorithm=FAST, unsigned int verbose=2) | |
NNITopologySearch (const NNITopologySearch &ts) | |
NNITopologySearch & | operator= (const NNITopologySearch &ts) |
virtual | ~NNITopologySearch () |
void | search () throw (Exception) |
Performs the search. More... | |
void | addTopologyListener (TopologyListener *listener) |
Add a listener to the list. More... | |
const Tree & | getTopology () const |
Retrieve the tree. More... | |
NNISearchable * | getSearchableObject () |
const NNISearchable * | getSearchableObject () const |
Static Public Attributes | |
static const std::string | FAST = "Fast" |
static const std::string | BETTER = "Better" |
static const std::string | PHYML = "PhyML" |
Protected Member Functions | |
void | searchFast () throw (Exception) |
void | searchBetter () throw (Exception) |
void | searchPhyML () throw (Exception) |
void | notifyAllPerformed (const TopologyChangeEvent &event) |
Process a TopologyChangeEvent to all listeners. More... | |
void | notifyAllTested (const TopologyChangeEvent &event) |
Process a TopologyChangeEvent to all listeners. More... | |
void | notifyAllSuccessful (const TopologyChangeEvent &event) |
Process a TopologyChangeEvent to all listeners. More... | |
Private Attributes | |
NNISearchable * | searchableTree_ |
std::string | algorithm_ |
unsigned int | verbose_ |
std::vector< TopologyListener * > | topoListeners_ |
NNI topology search method.
Several algorithm are implemented:
Definition at line 61 of file NNITopologySearch.h.
|
inline |
Definition at line 76 of file NNITopologySearch.h.
|
inline |
Definition at line 83 of file NNITopologySearch.h.
References topoListeners_.
|
inlinevirtual |
Definition at line 107 of file NNITopologySearch.h.
References topoListeners_.
|
inlinevirtual |
Add a listener to the list.
All listeners will be notified in the order of the list. The first listener to be notified is the NNISearchable object itself.
The listener will be owned by this instance, and copied when needed.
Implements bpp::TopologySearch.
Definition at line 126 of file NNITopologySearch.h.
References topoListeners_.
Referenced by bpp::OptimizationTools::optimizeTreeNNI(), and bpp::OptimizationTools::optimizeTreeNNI2().
|
inline |
Definition at line 143 of file NNITopologySearch.h.
References searchableTree_.
Referenced by bpp::OptimizationTools::optimizeTreeNNI(), and bpp::OptimizationTools::optimizeTreeNNI2().
|
inline |
Definition at line 147 of file NNITopologySearch.h.
References searchableTree_.
|
inline |
Retrieve the tree.
Definition at line 138 of file NNITopologySearch.h.
References bpp::NNISearchable::getTopology(), and searchableTree_.
|
protected |
Process a TopologyChangeEvent to all listeners.
Definition at line 58 of file NNITopologySearch.cpp.
|
protected |
Process a TopologyChangeEvent to all listeners.
Definition at line 76 of file NNITopologySearch.cpp.
|
protected |
Process a TopologyChangeEvent to all listeners.
Definition at line 67 of file NNITopologySearch.cpp.
|
inline |
Definition at line 94 of file NNITopologySearch.h.
References algorithm_, searchableTree_, topoListeners_, and verbose_.
|
virtual |
Performs the search.
Implements bpp::TopologySearch.
Definition at line 85 of file NNITopologySearch.cpp.
Referenced by bpp::OptimizationTools::optimizeTreeNNI(), and bpp::OptimizationTools::optimizeTreeNNI2().
|
protected |
Definition at line 149 of file NNITopologySearch.cpp.
References bpp::Node::getFather(), bpp::Node::getId(), and bpp::TreeTemplate< N >::getNodes().
|
protected |
Definition at line 97 of file NNITopologySearch.cpp.
References bpp::Node::getFather(), bpp::Node::getId(), and bpp::TreeTemplate< N >::getNodes().
|
protected |
Definition at line 214 of file NNITopologySearch.cpp.
References bpp::NNISearchable::clone(), bpp::Node::getFather(), bpp::Node::getId(), and bpp::TreeTemplate< N >::getNodes().
|
private |
Definition at line 71 of file NNITopologySearch.h.
Referenced by operator=().
|
static |
Definition at line 66 of file NNITopologySearch.h.
Referenced by bpp::PhylogeneticsApplicationTools::optimizeParameters().
|
static |
Definition at line 65 of file NNITopologySearch.h.
Referenced by bpp::PhylogeneticsApplicationTools::optimizeParameters().
|
static |
Definition at line 67 of file NNITopologySearch.h.
Referenced by bpp::PhylogeneticsApplicationTools::optimizeParameters(), and bpp::OptimizationTools::optimizeTreeNNI().
|
private |
Definition at line 70 of file NNITopologySearch.h.
Referenced by getSearchableObject(), getTopology(), and operator=().
|
private |
Definition at line 73 of file NNITopologySearch.h.
Referenced by addTopologyListener(), NNITopologySearch(), operator=(), and ~NNITopologySearch().
|
private |
Definition at line 72 of file NNITopologySearch.h.
Referenced by operator=().