Example #1
0
ChecksScoreState::ChecksScoreState(double prob)
    : ScoreState("ChecksScoreState %1%"), probability_(prob), num_checked_(0) {
  IMPCORE_DEPRECATED_METHOD_DEF(2.1,
                                "Use constructor with kernel::Model argument.");
  IMP_USAGE_CHECK(prob >= 0 && prob <= 1,
                  "Probability must be a number between 0 and 1.");
}
Example #2
0
DistanceRestraint::DistanceRestraint(UnaryFunction* score_func,
                                     Particle* p1, Particle* p2,
                                     std::string name)
    : IMP::internal::TupleRestraint<DistancePairScore>(
          new DistancePairScore(score_func), p1->get_model(),
          ParticleIndexPair( p1->get_index(), p2->get_index() ),
          name) {
  IMPCORE_DEPRECATED_METHOD_DEF(2.5,
                                "Use the index-based constructor instead.");
}
Example #3
0
ConnectivityRestraint::ConnectivityRestraint(PairScore *ps)
    : kernel::Restraint("ConnectivityRestraint %1%"), ps_(ps) {
  IMPCORE_DEPRECATED_METHOD_DEF(2.1, "Use constructor that takes container.");
}