Public Member Functions | Public Attributes | Private Attributes | List of all members
SceneModel::Topology Class Reference

#include <Topology.h>

Public Member Functions

double getAverageRecognitionRuntime () const
 
double getCost () const
 
double getFalseNegatives () const
 
double getFalsePositives () const
 
boost::shared_ptr< TreeNodegetTree ()
 
bool isCostValid () const
 
bool isEvaluated () const
 
bool isTreeValid () const
 
void setCost (double pCost)
 
void setEvaluationResult (double pAverageRecognitionRuntime, double pFalsePositives, double pFalseNegatives)
 
void setTree (boost::shared_ptr< TreeNode > pTree)
 
 Topology ()
 
 ~Topology ()
 

Public Attributes

std::string mIdentifier
 
std::vector< boost::shared_ptr< Relation > > mRelations
 
bool mUsedInOptimization
 

Private Attributes

double mAverageRecognitionRuntime
 
double mCost
 
bool mCostValid
 
bool mEvaluated
 
unsigned int mFalseNegatives
 
unsigned int mFalsePositives
 
boost::shared_ptr< TreeNodemTree
 

Detailed Description

Container class for a topology.

Definition at line 32 of file Topology.h.

Constructor & Destructor Documentation

SceneModel::Topology::Topology ( )

Constructor.

Definition at line 23 of file Topology.cpp.

SceneModel::Topology::~Topology ( )

Destructor.

Definition at line 26 of file Topology.cpp.

Member Function Documentation

double SceneModel::Topology::getAverageRecognitionRuntime ( ) const

Get the average recognition runtime of test sets during evaluation.

Returns
The average recognition runtime of test sets during evaluation.

Definition at line 36 of file Topology.cpp.

double SceneModel::Topology::getCost ( ) const

Get the cost calculated for the tree generated from the relations of this topology.

Returns
the cost calculated for the tree generated from the relations of this topology.

Definition at line 68 of file Topology.cpp.

double SceneModel::Topology::getFalseNegatives ( ) const

Get the number of false negatives encountered during evaluation.

Returns
The number of false negatives encountered during evaluation.

Definition at line 50 of file Topology.cpp.

double SceneModel::Topology::getFalsePositives ( ) const

Get the number of false positives encountered during evaluation.

Returns
The number of false positives encountered during evaluation.

Definition at line 43 of file Topology.cpp.

boost::shared_ptr< TreeNode > SceneModel::Topology::getTree ( )

Get the tree that was generated for the relations of this topology.

Returns
the tree that was generated for the relations of this topology.

Definition at line 85 of file Topology.cpp.

bool SceneModel::Topology::isCostValid ( ) const

Returns whether the cost is valid.

Returns
whether the cost is valid.

Definition at line 75 of file Topology.cpp.

bool SceneModel::Topology::isEvaluated ( ) const

Returns whether the topology has been evaluated.

Returns
whether the topology has been evaluated.

Definition at line 57 of file Topology.cpp.

bool SceneModel::Topology::isTreeValid ( ) const

Returns whether the tree is valid.

Returns
whether the tree is valid.

Definition at line 97 of file Topology.cpp.

void SceneModel::Topology::setCost ( double  pCost)

Set the cost calculated for the tree generated from the relations of this topology.

Parameters
pCostthe cost calculated for the tree generated from the relations of this topology.

Definition at line 62 of file Topology.cpp.

void SceneModel::Topology::setEvaluationResult ( double  pAverageRecognitionRuntime,
double  pFalsePositives,
double  pFalseNegatives 
)

Set the evaluation result of this topology.

Parameters
pAverageRecognitionRuntimeThe average recognition runtime of test sets during evaluation.
pFalsePositivesThe number of false positives encountered during evaluation
pFalseNegativesThe number of false negatives encountered during evaluation.

Definition at line 28 of file Topology.cpp.

void SceneModel::Topology::setTree ( boost::shared_ptr< TreeNode pTree)

Set the tree that was generated for the relations of this topology.

Parameters
pTreethe tree that was generated for the relations of this topology.

Definition at line 80 of file Topology.cpp.

Member Data Documentation

double SceneModel::Topology::mAverageRecognitionRuntime
private

The average recognition runtime of test sets during evaluation.

Definition at line 142 of file Topology.h.

double SceneModel::Topology::mCost
private

The cost calculated for the tree generated from the relations of this topology.

Definition at line 157 of file Topology.h.

bool SceneModel::Topology::mCostValid
private

Whether the cost calculated for the tree generated from the relations of this topology is valid.

Definition at line 152 of file Topology.h.

bool SceneModel::Topology::mEvaluated
private

Whether the result of the evaluation of this topology is valid.

Definition at line 132 of file Topology.h.

unsigned int SceneModel::Topology::mFalseNegatives
private

The number of false negatives encountered during evaluation.

Definition at line 147 of file Topology.h.

unsigned int SceneModel::Topology::mFalsePositives
private

The number of false positives encountered during evaluation

Definition at line 137 of file Topology.h.

std::string SceneModel::Topology::mIdentifier

A unique identifier

Definition at line 53 of file Topology.h.

std::vector<boost::shared_ptr<Relation> > SceneModel::Topology::mRelations

The relations of which this topology is made of.

Definition at line 48 of file Topology.h.

boost::shared_ptr<TreeNode> SceneModel::Topology::mTree
private

The tree that was generated for the relations of this topology. Check for nullpointer when checking validity.

Definition at line 163 of file Topology.h.

bool SceneModel::Topology::mUsedInOptimization

Whether this topology has already been visited during optimization.

Definition at line 58 of file Topology.h.


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


asr_relation_graph_generator
Author(s): Meißner Pascal
autogenerated on Fri Nov 15 2019 03:39:19