This class defines the GPM Builder class. More...
#include <GPMBuilder.h>
Public Member Functions | |
| GPMBuilder (GPMConstructorAbstractStrategy *constructor, GPMWeightsAbstractStrategy *weights) | |
| Default constructor. More... | |
| virtual | ~GPMBuilder () |
| Virtual destructor. More... | |
Methods | |
Methods used by the GPM builder | |
| bool | setGPMInfo (te::da::DataSourcePtr ds, const std::string &dataSetName, const std::string &attributeName) |
| Function used to create a empty gpm (using a MEMORY DIRECT graph) More... | |
| std::auto_ptr < GeneralizedProximityMatrix > | build () |
Private Attributes | |
| GPMConstructorAbstractStrategy * | m_constructor |
| Strategy used to construct the gpm. More... | |
| te::da::DataSourcePtr | m_ds |
| Input Data Source. More... | |
| std::auto_ptr < GeneralizedProximityMatrix > | m_gpm |
| GPM reference pointer. More... | |
| GPMWeightsAbstractStrategy * | m_weights |
| Strategy used to calculate the weight of a gpm. More... | |
This class defines the GPM Builder class.
Definition at line 54 of file GPMBuilder.h.
| te::sa::GPMBuilder::GPMBuilder | ( | GPMConstructorAbstractStrategy * | constructor, |
| GPMWeightsAbstractStrategy * | weights | ||
| ) |
Default constructor.
Definition at line 37 of file GPMBuilder.cpp.
|
virtual |
Virtual destructor.
Definition at line 44 of file GPMBuilder.cpp.
| std::auto_ptr< te::sa::GeneralizedProximityMatrix > te::sa::GPMBuilder::build | ( | ) |
Definition at line 78 of file GPMBuilder.cpp.
Referenced by te::sa::SkaterDialog::loadGPM(), te::sa::SpatialStatisticsDialog::loadGPM(), te::sa::BayesLocalDialog::loadGPM(), and te::sa::ProximityMatrixCreatorDialog::onOkPushButtonClicked().
| bool te::sa::GPMBuilder::setGPMInfo | ( | te::da::DataSourcePtr | ds, |
| const std::string & | dataSetName, | ||
| const std::string & | attributeName | ||
| ) |
Function used to create a empty gpm (using a MEMORY DIRECT graph)
| ds | Data source pointer |
| dataSetName | Container with data source information |
| attributeName | Attribute used to define the output graph type |
Definition at line 49 of file GPMBuilder.cpp.
References te::graph::AbstractGraphFactory::make(), and te::graph::Globals::sm_factoryGraphTypeDirectedGraph.
Referenced by te::sa::SkaterDialog::loadGPM(), te::sa::SpatialStatisticsDialog::loadGPM(), te::sa::BayesLocalDialog::loadGPM(), and te::sa::ProximityMatrixCreatorDialog::onOkPushButtonClicked().
|
private |
Strategy used to construct the gpm.
Definition at line 88 of file GPMBuilder.h.
|
private |
Input Data Source.
Definition at line 94 of file GPMBuilder.h.
|
private |
GPM reference pointer.
Definition at line 92 of file GPMBuilder.h.
|
private |
Strategy used to calculate the weight of a gpm.
Definition at line 90 of file GPMBuilder.h.