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

This class defines a an Abstract class to calculates a weight for a GPM. More...

#include <GPMWeightsAbstractStrategy.h>

Inheritance diagram for te::sa::GPMWeightsAbstractStrategy:
te::sa::GPMWeightsInverseDistanceStrategy te::sa::GPMWeightsNoWeightsStrategy te::sa::GPMWeightsSquaredInverseDistanceStrategy

Public Member Functions

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

Protected Attributes

GeneralizedProximityMatrixm_gpm
 GPM Pointer. More...
 
GPMWeightsStrategyType m_type
 Weight Type. More...
 

Methods

Methods used by the GPM constructor

GPMWeightsStrategyType getWeightsType ()
 
virtual void calculate (GeneralizedProximityMatrix *gpm)=0
 
int createWeightAttribute (GeneralizedProximityMatrix *gpm)
 Added to the edge a new attribute for weight information and return the attr index. More...
 
bool getDistanceAttributeIndex (te::graph::GraphMetadata *gm, int &index)
 Function used to get the distance attribute index. More...
 
double getDistanceAttributeValue (te::graph::Edge *e, const int index)
 Function used to get the distance value from a edge element. More...
 

Detailed Description

This class defines a an Abstract class to calculates a weight for a GPM.

See also
GPMBuilder

Definition at line 58 of file GPMWeightsAbstractStrategy.h.

Constructor & Destructor Documentation

te::sa::GPMWeightsAbstractStrategy::GPMWeightsAbstractStrategy ( )

Default constructor.

Definition at line 38 of file GPMWeightsAbstractStrategy.cpp.

te::sa::GPMWeightsAbstractStrategy::~GPMWeightsAbstractStrategy ( )
virtual

Virtual destructor.

Definition at line 42 of file GPMWeightsAbstractStrategy.cpp.

Member Function Documentation

virtual void te::sa::GPMWeightsAbstractStrategy::calculate ( GeneralizedProximityMatrix gpm)
pure virtual
int te::sa::GPMWeightsAbstractStrategy::createWeightAttribute ( GeneralizedProximityMatrix gpm)
protected
bool te::sa::GPMWeightsAbstractStrategy::getDistanceAttributeIndex ( te::graph::GraphMetadata gm,
int &  index 
)
protected
double te::sa::GPMWeightsAbstractStrategy::getDistanceAttributeValue ( te::graph::Edge e,
const int  index 
)
protected

Function used to get the distance value from a edge element.

Definition at line 81 of file GPMWeightsAbstractStrategy.cpp.

References te::graph::Edge::getAttributes(), and te::dt::SimpleData< T, typeCode >::getValue().

te::sa::GPMWeightsStrategyType te::sa::GPMWeightsAbstractStrategy::getWeightsType ( )

Definition at line 46 of file GPMWeightsAbstractStrategy.cpp.

Member Data Documentation

GeneralizedProximityMatrix* te::sa::GPMWeightsAbstractStrategy::m_gpm
protected

GPM Pointer.

Definition at line 97 of file GPMWeightsAbstractStrategy.h.


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