bpp-phyl3
3.0.0
|
NNI topology search method. More...
#include <Bpp/Phyl/Legacy/Tree/NNITopologySearch.h>
Public Member Functions | |
NNITopologySearch (std::shared_ptr< NNISearchable > tree, const std::string &algorithm=FAST, unsigned int verbose=2) | |
NNITopologySearch (const NNITopologySearch &ts) | |
NNITopologySearch & | operator= (const NNITopologySearch &ts) |
virtual | ~NNITopologySearch () |
void | search () |
Performs the search. More... | |
void | addTopologyListener (std::shared_ptr< TopologyListener > listener) |
Add a listener to the list. More... | |
const Tree & | topology () const |
Retrieve the tree. More... | |
std::shared_ptr< NNISearchable > | getSearchableObject () |
std::shared_ptr< 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 () |
void | searchBetter () |
void | searchPhyML () |
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 | |
std::shared_ptr< NNISearchable > | searchableTree_ |
std::string | algorithm_ |
unsigned int | verbose_ |
std::vector< std::shared_ptr< TopologyListener > > | topoListeners_ |
NNI topology search method.
Several algorithm are implemented:
Definition at line 26 of file NNITopologySearch.h.
|
inline |
Definition at line 41 of file NNITopologySearch.h.
|
inline |
Definition at line 48 of file NNITopologySearch.h.
References topoListeners_.
|
inlinevirtual |
Definition at line 76 of file NNITopologySearch.h.
|
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 90 of file NNITopologySearch.h.
References topoListeners_.
|
inline |
Definition at line 107 of file NNITopologySearch.h.
References searchableTree_.
Referenced by bpp::LegacyOptimizationTools::optimizeTreeNNI().
|
inline |
Definition at line 112 of file NNITopologySearch.h.
References searchableTree_.
|
protected |
Process a TopologyChangeEvent to all listeners.
Definition at line 23 of file NNITopologySearch.cpp.
|
protected |
Process a TopologyChangeEvent to all listeners.
Definition at line 41 of file NNITopologySearch.cpp.
|
protected |
Process a TopologyChangeEvent to all listeners.
Definition at line 32 of file NNITopologySearch.cpp.
|
inline |
Definition at line 61 of file NNITopologySearch.h.
References algorithm_, searchableTree_, topoListeners_, and verbose_.
|
virtual |
Performs the search.
Implements bpp::TopologySearch.
Definition at line 50 of file NNITopologySearch.cpp.
Referenced by bpp::LegacyOptimizationTools::optimizeTreeNNI().
|
protected |
Definition at line 114 of file NNITopologySearch.cpp.
References bpp::ApplicationTools::displayResult(), bpp::ApplicationTools::displayTask(), bpp::ApplicationTools::displayTaskDone(), bpp::Node::getFather(), bpp::Node::getId(), bpp::TreeTemplate< N >::getNodes(), bpp::ApplicationTools::message, bpp::TextTools::toString(), and bpp::VectorTools::whichMin().
|
protected |
Definition at line 62 of file NNITopologySearch.cpp.
References bpp::ApplicationTools::displayResult(), bpp::Node::getFather(), bpp::Node::getId(), bpp::TreeTemplate< N >::getNodes(), and bpp::TextTools::toString().
|
protected |
Definition at line 179 of file NNITopologySearch.cpp.
References bpp::NNISearchable::clone(), bpp::ApplicationTools::displayMessage(), bpp::ApplicationTools::displayResult(), bpp::ApplicationTools::displayTask(), bpp::ApplicationTools::displayTaskDone(), bpp::Node::getFather(), bpp::Node::getId(), bpp::TreeTemplate< N >::getNodes(), bpp::ApplicationTools::message, and bpp::TextTools::toString().
|
inline |
Retrieve the tree.
Definition at line 102 of file NNITopologySearch.h.
References searchableTree_.
|
private |
Definition at line 36 of file NNITopologySearch.h.
Referenced by operator=().
|
static |
Definition at line 31 of file NNITopologySearch.h.
Referenced by bpp::LegacyPhylogeneticsApplicationTools::optimizeParameters().
|
static |
Definition at line 30 of file NNITopologySearch.h.
Referenced by bpp::LegacyPhylogeneticsApplicationTools::optimizeParameters().
|
static |
Definition at line 32 of file NNITopologySearch.h.
Referenced by bpp::LegacyPhylogeneticsApplicationTools::optimizeParameters(), and bpp::LegacyOptimizationTools::optimizeTreeNNI().
|
private |
Definition at line 35 of file NNITopologySearch.h.
Referenced by getSearchableObject(), operator=(), and topology().
|
private |
Definition at line 38 of file NNITopologySearch.h.
Referenced by addTopologyListener(), NNITopologySearch(), and operator=().
|
private |
Definition at line 37 of file NNITopologySearch.h.
Referenced by operator=().