Parasol Planning Library (PPL)
MixSampler.h
Go to the documentation of this file.
1 #ifndef MIX_SAMPLER_H_
2 #define MIX_SAMPLER_H_
3 
4 #include "SamplerMethod.h"
5 
10 class MixSampler : virtual public SamplerMethod {
11 
12  public:
13 
14  MixSampler();
15  MixSampler(XMLNode& _node);
16 
17  void ParseXML(XMLNode& _node);
18 
19  virtual void Print(ostream& _os) const;
20 
21  protected:
22  virtual bool Sampler(Cfg& _cfg, const Boundary* const _boundary,
23  vector<Cfg>& _result, vector<Cfg>& _collision);
24 
25  std::vector<pair <string, double> > m_samplers; // Stores method label with cumulative probability
26 
27  pair<string, int> m_samplerLabels; // Stores label history and index
28 };
29 
30 #endif
Definition: Boundary.h:30
Definition: Cfg.h:38
Definition: MixSampler.h:10
pair< string, int > m_samplerLabels
Definition: MixSampler.h:27
virtual void Print(ostream &_os) const
Definition: MixSampler.cpp:55
void ParseXML(XMLNode &_node)
Definition: MixSampler.cpp:22
virtual bool Sampler(Cfg &_cfg, const Boundary *const _boundary, vector< Cfg > &_result, vector< Cfg > &_collision)
Definition: MixSampler.cpp:66
MixSampler()
Definition: MixSampler.cpp:7
std::vector< pair< string, double > > m_samplers
Definition: MixSampler.h:25
Definition: SamplerMethod.h:70
Definition: XMLNode.h:27