aGrUM  0.16.0
gum::UTGenerator Class Referenceabstract

Abstract class for generating Utility Tables. More...

#include <UTGenerator.h>

+ Inheritance diagram for gum::UTGenerator:

Public Member Functions

Constructors / Destructor
 UTGenerator ()
 Default constructor. More...
 
virtual ~UTGenerator ()
 Destructor. More...
 
UT generation methods
virtual void generateUT (const Idx &varId, const Potential< float > &ut)=0
 Generates a UT using floats. More...
 
virtual void generateUT (const Idx &varId, const Potential< double > &ut)=0
 Generates a UT using doubles. More...
 

Detailed Description

Abstract class for generating Utility Tables.

This abstract class is an implementation of the strategy pattern to help changing UT generation policies for the InfluenceDiagramGenerator class.

Definition at line 43 of file UTGenerator.h.

Constructor & Destructor Documentation

◆ UTGenerator()

gum::UTGenerator::UTGenerator ( )

Default constructor.

Definition at line 34 of file UTGenerator.cpp.

34 { GUM_CONSTRUCTOR(UTGenerator); }
UTGenerator()
Default constructor.
Definition: UTGenerator.cpp:34

◆ ~UTGenerator()

gum::UTGenerator::~UTGenerator ( )
virtual

Destructor.

Definition at line 37 of file UTGenerator.cpp.

37 { GUM_DESTRUCTOR(UTGenerator); }
UTGenerator()
Default constructor.
Definition: UTGenerator.cpp:34

Member Function Documentation

◆ generateUT() [1/2]

virtual void gum::UTGenerator::generateUT ( const Idx varId,
const Potential< float > &  ut 
)
pure virtual

Generates a UT using floats.

Parameters
varIdThe variable id of the UT owner.
utA reference on the UT to fill.

Implemented in gum::SimpleUTGenerator.

◆ generateUT() [2/2]

virtual void gum::UTGenerator::generateUT ( const Idx varId,
const Potential< double > &  ut 
)
pure virtual

Generates a UT using doubles.

Parameters
varIdThe variable id of the UT owner.
utA reference on the UT to fill.

Implemented in gum::SimpleUTGenerator.


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