This class defines a class to calculates a weight for a GPM using No Weights strategy. More...
#include <GPMWeightsNoWeightsStrategy.h>
Public Member Functions | |
GPMWeightsNoWeightsStrategy (bool normalize) | |
Default constructor. More... | |
virtual | ~GPMWeightsNoWeightsStrategy () |
Virtual destructor. More... | |
Methods | |
Methods used by the GPM constructor | |
virtual void | calculate (GeneralizedProximityMatrix *gpm) |
Protected Attributes | |
GeneralizedProximityMatrix * | m_gpm |
GPM Pointer. More... | |
bool | m_normalize |
GPMWeightsStrategyType | m_type |
Weight Type. More... | |
Methods | |
GPMWeightsStrategyType | getWeightsType () |
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... | |
This class defines a class to calculates a weight for a GPM using No Weights strategy.
The no weight strategy of proximity matrix (i.e., all weights are 1, only indicating that a connection exists).
Definition at line 55 of file GPMWeightsNoWeightsStrategy.h.
te::sa::GPMWeightsNoWeightsStrategy::GPMWeightsNoWeightsStrategy | ( | bool | normalize | ) |
Default constructor.
|
virtual |
Virtual destructor.
|
virtual |
Implements te::sa::GPMWeightsAbstractStrategy.
|
protectedinherited |
Added to the edge a new attribute for weight information and return the attr index.
|
protectedinherited |
Function used to get the distance attribute index.
|
protectedinherited |
Function used to get the distance value from a edge element.
|
inherited |
|
protectedinherited |
GPM Pointer.
Definition at line 97 of file GPMWeightsAbstractStrategy.h.
|
protected |
Definition at line 79 of file GPMWeightsNoWeightsStrategy.h.
|
protectedinherited |
Weight Type.
Definition at line 95 of file GPMWeightsAbstractStrategy.h.