27 #include "../../dataaccess/datasource/DataSource.h"
28 #include "../../graph/core/AbstractGraphFactory.h"
29 #include "../../graph/Globals.h"
38 m_constructor(constructor),
57 m_gpm->setDataSetName(dataSetName);
58 m_gpm->setAttributeName(attributeName);
64 std::map<std::string, std::string> connInfo;
67 std::map<std::string, std::string> graphInfo;
68 graphInfo[
"GRAPH_DATA_SOURCE_TYPE"] =
"MEM";
69 graphInfo[
"GRAPH_NAME"] = dataSetName +
"_graph";
70 graphInfo[
"GRAPH_DESCRIPTION"] =
"Generated by GPM Builder.";
84 m_constructor->construct(m_ds.get(), m_gpm.get());
87 m_weights->calculate(m_gpm.get());
std::auto_ptr< GeneralizedProximityMatrix > build()
This class defines a an Abstract class for a GPM constructor.
boost::shared_ptr< DataSource > DataSourcePtr
This class defines a Generalized Proximity Matrix.
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)
virtual ~GPMBuilder()
Virtual destructor.
GPMBuilder(GPMConstructorAbstractStrategy *constructor, GPMWeightsAbstractStrategy *weights)
Default constructor.
This class defines a an Abstract class for a GPM constructor.
static const std::string sm_factoryGraphTypeDirectedGraph
Directed Graph Factory Name.
This class defines a an Abstract class to calculates a weight for a GPM.
This class defines the GPM Builder class.
This class defines a an Abstract class to calculates a weight for a GPM.
static AbstractGraph * make()
It creates and returns an empty graph with default graph type.