All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::sa::GPMConstructorAbstractStrategy Class Referenceabstract

This class defines a an Abstract class for a GPM constructor. More...

#include <GPMConstructorAbstractStrategy.h>

Inheritance diagram for te::sa::GPMConstructorAbstractStrategy:
te::sa::GPMConstructorAdjacencyStrategy te::sa::GPMConstructorDistanceStrategy te::sa::GPMConstructorNearestNeighborStrategy

Public Member Functions

 GPMConstructorAbstractStrategy ()
 Default constructor. More...
 
virtual ~GPMConstructorAbstractStrategy ()
 Virtual destructor. More...
 

Protected Attributes

te::da::DataSourcem_ds
 Data Source pointer. More...
 
int m_edgeId
 Attribute used as a index counter for edge objects. More...
 
GeneralizedProximityMatrixm_gpm
 GPM Pointer. More...
 
GPMConstructorStrategyType m_type
 Constructor Type. More...
 

Methods

Methods used by the GPM constructor

GPMConstructorStrategyType getConstructorType ()
 
void construct (te::da::DataSource *ds, GeneralizedProximityMatrix *gpm)
 
void createVertexObjects ()
 Function used to create all vertex object based on data set. More...
 
void createDistanceAttribute (GeneralizedProximityMatrix *gpm)
 Added to the edge a new attribute for distance information. More...
 
int getEdgeId ()
 Function used to generated the edge id. More...
 
virtual void constructStrategy ()=0
 Build the edges using specific strategy. More...
 

Detailed Description

This class defines a an Abstract class for a GPM constructor.

See also
GPMBuilder

Definition at line 59 of file GPMConstructorAbstractStrategy.h.

Constructor & Destructor Documentation

te::sa::GPMConstructorAbstractStrategy::GPMConstructorAbstractStrategy ( )

Default constructor.

Definition at line 47 of file GPMConstructorAbstractStrategy.cpp.

References m_edgeId.

te::sa::GPMConstructorAbstractStrategy::~GPMConstructorAbstractStrategy ( )
virtual

Virtual destructor.

Definition at line 52 of file GPMConstructorAbstractStrategy.cpp.

Member Function Documentation

void te::sa::GPMConstructorAbstractStrategy::construct ( te::da::DataSource ds,
GeneralizedProximityMatrix gpm 
)

Definition at line 61 of file GPMConstructorAbstractStrategy.cpp.

virtual void te::sa::GPMConstructorAbstractStrategy::constructStrategy ( )
protectedpure virtual
void te::sa::GPMConstructorAbstractStrategy::createDistanceAttribute ( GeneralizedProximityMatrix gpm)
protected
te::sa::GPMConstructorStrategyType te::sa::GPMConstructorAbstractStrategy::getConstructorType ( )

Definition at line 56 of file GPMConstructorAbstractStrategy.cpp.

int te::sa::GPMConstructorAbstractStrategy::getEdgeId ( )
protected

Function used to generated the edge id.

Definition at line 146 of file GPMConstructorAbstractStrategy.cpp.

Member Data Documentation

te::da::DataSource* te::sa::GPMConstructorAbstractStrategy::m_ds
protected

Data Source pointer.

Definition at line 103 of file GPMConstructorAbstractStrategy.h.

int te::sa::GPMConstructorAbstractStrategy::m_edgeId
protected

Attribute used as a index counter for edge objects.

Definition at line 101 of file GPMConstructorAbstractStrategy.h.

Referenced by GPMConstructorAbstractStrategy().

GeneralizedProximityMatrix* te::sa::GPMConstructorAbstractStrategy::m_gpm
protected

GPM Pointer.

Definition at line 105 of file GPMConstructorAbstractStrategy.h.


The documentation for this class was generated from the following files: