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.

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

Virtual destructor.

Member Function Documentation

virtual void te::sa::GPMWeightsAbstractStrategy::calculate ( GeneralizedProximityMatrix gpm)
pure virtual
int te::sa::GPMWeightsAbstractStrategy::createWeightAttribute ( GeneralizedProximityMatrix gpm)
protected

Added to the edge a new attribute for weight information and return the attr index.

bool te::sa::GPMWeightsAbstractStrategy::getDistanceAttributeIndex ( te::graph::GraphMetadata gm,
int &  index 
)
protected

Function used to get the distance attribute index.

double te::sa::GPMWeightsAbstractStrategy::getDistanceAttributeValue ( te::graph::Edge e,
const int  index 
)
protected

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

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

Member Data Documentation

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

GPM Pointer.

Definition at line 97 of file GPMWeightsAbstractStrategy.h.

GPMWeightsStrategyType te::sa::GPMWeightsAbstractStrategy::m_type
protected

Weight Type.

Definition at line 95 of file GPMWeightsAbstractStrategy.h.


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