IMP
2.1.0
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
Mover.h
Go to the documentation of this file.
1
/**
2
* \file IMP/core/Mover.h
3
* \brief Backwards compatibility.
4
*
5
* Copyright 2007-2013 IMP Inventors. All rights reserved.
6
*
7
*/
8
9
#ifndef IMPCORE_MOVER_H
10
#define IMPCORE_MOVER_H
11
12
#include <IMP/core/core_config.h>
13
#include "
MonteCarloMover.h
"
14
#include <
IMP/kernel/Model.h
>
15
#include <
IMP/kernel/Particle.h
>
16
17
IMPCORE_DEPRECATED_HEADER(2.1,
"Use MonteCarloMover"
);
18
19
IMPCORE_BEGIN_NAMESPACE
20
21
/** \deprecated_at{2.1} Use MonteCarloMover instead
22
*/
23
class
IMPCOREEXPORT
Mover
:
public
MonteCarloMover
{
24
public
:
25
IMPCORE_DEPRECATED_OBJECT_DECL(2.1)
26
Mover
(
kernel::Model
*m, std::string name) :
MonteCarloMover
(m, name) {
27
IMPCORE_DEPRECATED_OBJECT_DEF(2.1,
"Use MonteCarloMover"
);
28
}
29
30
virtual
kernel::ParticlesTemp
propose_move(
Float
size) = 0;
31
32
//! Roll back any changes made to the kernel::Particles
33
virtual
void
reset_move() = 0;
34
35
//! Return the set of particles over which moves can be proposed
36
virtual
kernel::ParticlesTemp
get_output_particles
()
const
= 0;
37
38
protected
:
39
virtual
kernel::ModelObjectsTemp
do_get_inputs
() const IMP_OVERRIDE {
40
return
get_as<ModelObjectsTemp>(
get_output_particles
());
41
}
42
virtual
MonteCarloMoverResult
do_propose
() IMP_OVERRIDE {
43
return
MonteCarloMoverResult
(
get_indexes
(propose_move(1.0)), 1.0);
44
}
45
virtual
void
do_reject
() IMP_OVERRIDE { reset_move(); }
46
};
47
48
typedef
MonteCarloMovers
Movers;
49
typedef
MonteCarloMoversTemp
MoversTemp;
50
51
IMPCORE_END_NAMESPACE
52
53
#endif
/* IMPCORE_MOVER_H */
IMP::core::Mover::do_reject
virtual void do_reject()
Implement reset_proposed_move()
Definition:
Mover.h:45
IMP::kernel::get_indexes
ParticleIndexes get_indexes(const ParticlesTemp &ps)
IMP::kernel::get_output_particles
ParticlesTemp get_output_particles(const ModelObjectsTemp &mos)
IMP::core::MonteCarloMoversTemp
IMP::base::Vector< IMP::base::WeakPointer< MonteCarloMover > > MonteCarloMoversTemp
Definition:
MonteCarloMover.h:108
IMP::core::MonteCarloMoverResult
Definition:
MonteCarloMover.h:29
IMP::core::MonteCarloMovers
IMP::base::Vector< IMP::base::Pointer< MonteCarloMover > > MonteCarloMovers
Definition:
MonteCarloMover.h:108
IMP::base::Vector< base::WeakPointer< Particle > >
IMP::core::MonteCarloMover
A base class for classes which perturb particles.
Definition:
MonteCarloMover.h:41
MonteCarloMover.h
The base class for movers for MC optimization.
Model.h
Storage of a model, its restraints, constraints and particles.
Particle.h
Classes to handle individual model particles.
IMP::core::Mover
Definition:
Mover.h:23
IMP::core::Mover::do_get_inputs
virtual kernel::ModelObjectsTemp do_get_inputs() const
Definition:
Mover.h:39
IMP::Float
double Float
Basic floating-point value (could be float, double...)
Definition:
base/types.h:20
IMP::kernel::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
kernel/declare_Model.h:72
IMP::core::Mover::do_propose
virtual MonteCarloMoverResult do_propose()
Implement propose_move()
Definition:
Mover.h:42