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

Class used to execute the skater operations. More...

#include <SkaterOperation.h>

Public Member Functions

void execute ()
 Function to execute the skater operation. More...
 
int getNumberOfClasses ()
 
void setParameters (te::sa::SkaterInputParams *inParams, te::sa::SkaterOutputParams *outParams)
 
 SkaterOperation ()
 Default constructor. More...
 
 ~SkaterOperation ()
 Virtual destructor. More...
 

Protected Member Functions

double calculateWeight (std::vector< int > attrsIdx, te::graph::Vertex *vFrom, te::graph::Vertex *vTo)
 Function to calculate the weight attribute using the euclidean distance. More...
 
std::auto_ptr< te::mem::DataSetcreateDataSet (te::da::DataSet *inputDataSet, te::da::DataSetType *dsType, std::map< int, int > &skaterMap, std::string linkName)
 
std::auto_ptr
< te::da::DataSetType
createDataSetType (te::da::DataSetType *dsType)
 
std::map< int, int > createSkaterMap (te::graph::AbstractGraph *graph, std::vector< std::size_t > &roots)
 
void createWeightAttribute (int weightAttrIdx, std::vector< int > attrsIdx)
 Function to create the weight attribute. More...
 
void saveDataSet (te::da::DataSet *dataSet, te::da::DataSetType *dsType)
 

Protected Attributes

std::auto_ptr
< te::sa::SkaterInputParams
m_inputParams
 Attribute with the skater input parameters. More...
 
int m_nClassGroups
 Number of classes (clusters) generated. More...
 
std::auto_ptr
< te::sa::SkaterOutputParams
m_outputParams
 Attribute with the skater output parameters. More...
 

Detailed Description

Class used to execute the skater operations.

Definition at line 55 of file SkaterOperation.h.

Constructor & Destructor Documentation

te::sa::SkaterOperation::SkaterOperation ( )

Default constructor.

Definition at line 54 of file SkaterOperation.cpp.

te::sa::SkaterOperation::~SkaterOperation ( )

Virtual destructor.

Definition at line 58 of file SkaterOperation.cpp.

Member Function Documentation

double te::sa::SkaterOperation::calculateWeight ( std::vector< int >  attrsIdx,
te::graph::Vertex vFrom,
te::graph::Vertex vTo 
)
protected

Function to calculate the weight attribute using the euclidean distance.

Definition at line 238 of file SkaterOperation.cpp.

References te::graph::Vertex::getAttributes(), and te::sa::GetDataValue().

std::auto_ptr< te::mem::DataSet > te::sa::SkaterOperation::createDataSet ( te::da::DataSet inputDataSet,
te::da::DataSetType dsType,
std::map< int, int > &  skaterMap,
std::string  linkName 
)
protected
std::auto_ptr< te::da::DataSetType > te::sa::SkaterOperation::createDataSetType ( te::da::DataSetType dsType)
protected
std::map< int, int > te::sa::SkaterOperation::createSkaterMap ( te::graph::AbstractGraph graph,
std::vector< std::size_t > &  roots 
)
protected
int te::sa::SkaterOperation::getNumberOfClasses ( )

Definition at line 137 of file SkaterOperation.cpp.

Referenced by te::sa::SkaterDialog::onOkPushButtonClicked().

void te::sa::SkaterOperation::saveDataSet ( te::da::DataSet dataSet,
te::da::DataSetType dsType 
)
protected

Function used to save the output dataset

Definition at line 199 of file SkaterOperation.cpp.

References te::da::DataSet::moveBeforeFirst().

void te::sa::SkaterOperation::setParameters ( te::sa::SkaterInputParams inParams,
te::sa::SkaterOutputParams outParams 
)

Definition at line 131 of file SkaterOperation.cpp.

Referenced by te::sa::SkaterDialog::onOkPushButtonClicked().

Member Data Documentation

std::auto_ptr<te::sa::SkaterInputParams> te::sa::SkaterOperation::m_inputParams
protected

Attribute with the skater input parameters.

Definition at line 95 of file SkaterOperation.h.

int te::sa::SkaterOperation::m_nClassGroups
protected

Number of classes (clusters) generated.

Definition at line 99 of file SkaterOperation.h.

std::auto_ptr<te::sa::SkaterOutputParams> te::sa::SkaterOperation::m_outputParams
protected

Attribute with the skater output parameters.

Definition at line 97 of file SkaterOperation.h.


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