/** * \file ChecksScoreState.h \brief Turn checks on and off. * * Copyright 2007-2010 IMP Inventors. All rights reserved. */ #ifndef IMPCORE_CHECKS_SCORE_STATE_H #define IMPCORE_CHECKS_SCORE_STATE_H #include "core_config.h" #include #include IMPCORE_BEGIN_NAMESPACE /** Turn checks on with a given probability each evaluate call. */ class IMPCOREEXPORT ChecksScoreState : public ScoreState { double probability_; unsigned int count_; public: ChecksScoreState(double probability); unsigned int get_number_of_checked() const { return count_; } IMP_SCORE_STATE(ChecksScoreState); }; IMPCORE_END_NAMESPACE #endif /* IMPCORE_CHECKS_SCORE_STATE_H */