27 #include "../../datatype/AbstractData.h"
28 #include "../../datatype/SimpleData.h"
29 #include "../../datatype/SimpleProperty.h"
30 #include "../../graph/core/Edge.h"
31 #include "../../graph/core/GraphMetadata.h"
An atomic property like an integer or double.
This class defines a Generalized Proximity Matrix.
GPMWeightsAbstractStrategy()
Default constructor.
virtual void addEdgeProperty(te::dt::Property *p)=0
Add a new property associated to the edge element.
bool getDistanceAttributeIndex(te::graph::GraphMetadata *gm, int &index)
Function used to get the distance attribute index.
T getValue() const
It returns the associated value.
GPMWeightsStrategyType getWeightsType()
void setId(unsigned int id)
It sets the property identifier.
int createWeightAttribute(GeneralizedProximityMatrix *gpm)
Added to the edge a new attribute for weight information and return the attr index.
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
virtual ~GPMWeightsAbstractStrategy()
Virtual destructor.
double getDistanceAttributeValue(te::graph::Edge *e, const int index)
Function used to get the distance value from a edge element.
#define TE_SA_WEIGHT_ATTR_NAME
#define TE_SA_DISTANCE_ATTR_NAME
virtual int getEdgePropertySize()=0
Used to verify the number of properties associated to edge elements.
This class defines a an Abstract class to calculates a weight for a GPM.
A template for atomic data types (integers, floats, strings and others).
std::vector< te::dt::AbstractData * > & getAttributes()
It returns the vector of attributes associated with this element.
GPMWeightsStrategyType
Strategies to calculate the weight for a GPM.
te::graph::AbstractGraph * getGraph()
const std::string & getName() const
It returns the property name.
This class defines the GPM class.
void setParent(Property *p)
It associate this property to the informed parent.