aGrUM  0.15.0
gum::prm::o3prmr::ObserveCommand< GUM_SCALAR > Class Template Reference

#include <O3prmrContext.h>

+ Inheritance diagram for gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >:
+ Collaboration diagram for gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >:

Public Attributes

std::string leftValue
 
std::string rightValue
 
const PRMSystem< GUM_SCALAR > * system
 
PRMInference< GUM_SCALAR >::Chain chain
 
Potential< GUM_SCALAR > potentiel
 
int line
 

Public Member Functions

 ObserveCommand (int line, const std::string &leftValue, const std::string &rightValue)
 
 ObserveCommand (const ObserveCommand &c)
 
RequestType type () const
 
std::string toString () const
 

Public Types

enum  RequestType : char {
  RequestType::Observe, RequestType::Unobserve, RequestType::Query, RequestType::SetEngine,
  RequestType::SetGndEngine
}
 

Detailed Description

template<typename GUM_SCALAR>
class gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >

Definition at line 119 of file O3prmrContext.h.

Member Enumeration Documentation

◆ RequestType

enum gum::prm::o3prmr::O3prmrCommand::RequestType : char
stronginherited
Enumerator
Observe 
Unobserve 
Query 
SetEngine 
SetGndEngine 

Definition at line 53 of file O3prmrContext.h.

53  : char {
54  Observe,
55  Unobserve,
56  Query,
57  SetEngine,
58  SetGndEngine
59  };

Constructor & Destructor Documentation

◆ ObserveCommand() [1/2]

template<typename GUM_SCALAR>
gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >::ObserveCommand ( int  line,
const std::string &  leftValue,
const std::string &  rightValue 
)
inline

◆ ObserveCommand() [2/2]

template<typename GUM_SCALAR>
gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >::ObserveCommand ( const ObserveCommand< GUM_SCALAR > &  c)
inline

Definition at line 126 of file O3prmrContext.h.

126  :
127  O3prmrCommand(c), leftValue(c.leftValue), rightValue(c.rightValue),
128  system(c.system), chain(c.chain) {}
PRMInference< GUM_SCALAR >::Chain chain
const PRMSystem< GUM_SCALAR > * system

Member Function Documentation

◆ toString()

template<typename GUM_SCALAR>
std::string gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >::toString ( ) const
inlinevirtual

Implements gum::prm::o3prmr::O3prmrCommand.

Definition at line 137 of file O3prmrContext.h.

137  {
138  return leftValue + " = " + rightValue + ";";
139  }

◆ type()

template<typename GUM_SCALAR>
RequestType gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >::type ( ) const
inlinevirtual

Member Data Documentation

◆ chain

template<typename GUM_SCALAR>
PRMInference< GUM_SCALAR >::Chain gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >::chain

◆ leftValue

template<typename GUM_SCALAR>
std::string gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >::leftValue

◆ line

int gum::prm::o3prmr::O3prmrCommand::line
inherited

◆ potentiel

template<typename GUM_SCALAR>
Potential< GUM_SCALAR > gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >::potentiel

◆ rightValue

template<typename GUM_SCALAR>
std::string gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >::rightValue

◆ system

template<typename GUM_SCALAR>
const PRMSystem< GUM_SCALAR >* gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >::system

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