/** * \file Sampler.cpp * \brief Storage of a model, its restraints, * constraints and particles. * * Copyright 2007-2013 IMP Inventors. All rights reserved. * */ #include "IMP/kernel/Sampler.h" #include IMPKERNEL_BEGIN_NAMESPACE Sampler::Sampler(Model *m, std::string nm): Object(nm), model_(m){ sf_= m->create_model_scoring_function(); } ConfigurationSet *Sampler::create_sample() const { IMP_OBJECT_LOG; set_was_used(true); //IMP_LOG_TERSE( "Sampling " << num_opt << " particles."<