9 #ifndef IMPDOMINO_DISCRETE_SAMPLER_H
10 #define IMPDOMINO_DISCRETE_SAMPLER_H
12 #include <IMP/domino/domino_config.h>
21 IMPDOMINO_BEGIN_NAMESPACE
62 unsigned int max = std::numeric_limits<int>::max())
const;
67 if (restraints_set_) {
70 IMP_THROW(
"No restraints have been set. Use set_restraints().",
86 restraints_set_ =
true;
95 pst_->set_particle_states(p, se);
113 void set_assignments_table(AssignmentsTable *sst) { sst_ = sst; }
114 ParticleStatesTable *get_particle_states_table()
const {
return pst_; }
116 subset_filter_table, subset_filter_tables,
118 obj->set_was_used(
true), , );
129 unsigned int get_maximum_number_of_assignments()
const {
return max_; }
134 IMPDOMINO_END_NAMESPACE
void set_particle_states(Particle *p, ParticleStates *se)
RestraintsTemp get_restraints(const Subset &s, const ParticleStatesTable *pst, const DependencyGraph &dg, RestraintSet *rs)
A base class for discrete samplers in Domino2.
A Bayesian inference-based sampler.
Base class for all samplers.
Represent a subset of the particles being optimized.
Various general useful macros for IMP.
Class for storing model, its restraints, constraints, and particles.
A Bayesian inference-based sampler.
void set_restraints(RestraintsAdaptor rs)
Set the Restraints to use in the RestraintScoreSubsetFilterTable.
void set_maximum_number_of_assignments(unsigned int mx)
Provide a consistent interface for things that take Restraints as arguments.
Base class for all samplers.
Various general useful macros for IMP.
A smart pointer to a ref-counted Object that is a class member.
A class to store a set of configurations of a model.
IMP::Vector< IMP::Pointer< SubsetFilterTable > > SubsetFilterTables
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
#define IMP_THROW(message, exception_name)
Throw an exception with a message.
A nullptr-initialized pointer to an IMP Object.
Class to handle individual model particles.
A Bayesian inference-based sampler.
An exception for an invalid value being passed to IMP.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.