SceneContent.cpp
Go to the documentation of this file.
1 
19 
21 
23  {
24  }
25 
27  {
28  }
29 
31  {
32  return (mAlgorithm) ? mAlgorithm->getProbability() : 0.0;
33  }
34 
36  {
37  mAlgorithm = pAlgorithm;
38  }
39 
40  void SceneContent::loadInferenceAlgorithm(boost::property_tree::ptree& pPt)
41  {
42  // Check, if there was a description specified.
43  if(!mAlgorithm)
44  throw std::invalid_argument("Unable to procees loading. No inference algorithm specified.");
45 
46  mAlgorithm->load(pPt);
47  }
48 
49  void SceneContent::doInference(std::vector<ISM::Object> pEvidenceList, std::ofstream& pRuntimeLogger)
50  {
51  // Check, if there was a description specified.
52  if(!mAlgorithm)
53  throw std::invalid_argument("Unable to execute inference. No inference algorithm specified.");
54 
55  mAlgorithm->doInference(pEvidenceList, pRuntimeLogger);
56  }
57 
58 }
void doInference(std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)
boost::shared_ptr< InferenceAlgorithm > mAlgorithm
Definition: SceneContent.h:124
void setInferenceAlgorithm(boost::shared_ptr< InferenceAlgorithm > pAlgorithm)
void loadInferenceAlgorithm(boost::property_tree::ptree &pPt)


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54