IMP Reference Guide
2.6.1
The Integrative Modeling Platform
|
#include <IMP/ModelObject.h>
These objects are associated with a particular Model and have a callback that is called whenever the dependencies in the model change. This allows them to update internal state when that occurs.
Definition at line 24 of file ModelObject.h.
Public Member Functions | |
ModelObject (Model *m, std::string name) | |
bool | get_has_dependencies () const |
Return whether this object has dependencies computed. More... | |
bool | get_has_required_score_states () const |
Return whether score states are computed. More... | |
ModelObjectsTemp | get_inputs () const |
ModelObjectsTemps | get_interactions () const |
Get the interacting sets induced by this ModelObject. More... | |
Model * | get_model () const |
ModelObjectsTemp | get_outputs () const |
const ScoreStatesTemp & | get_required_score_states () const |
Get the score states that are ancestors of this in the dependency graph. More... | |
void | set_has_dependencies (bool tf) |
Either invalidate the dependencies or ensure they are correct. More... | |
void | set_has_required_score_states (bool tf) |
Compute the required score states. More... | |
Public Member Functions inherited from IMP::Object | |
virtual void | clear_caches () |
CheckLevel | get_check_level () const |
LogLevel | get_log_level () const |
virtual VersionInfo | get_version_info () const |
Get information about the module and version of the object. More... | |
void | set_check_level (CheckLevel l) |
void | set_log_level (LogLevel l) |
Set the logging level used in this object. More... | |
void | set_was_used (bool tf) const |
void | show (std::ostream &out=std::cout) const |
const std::string & | get_name () const |
void | set_name (std::string name) |
virtual std::string | get_type_name () const |
Protected Member Functions | |
virtual ModelObjectsTemp | do_get_inputs () const =0 |
virtual ModelObjectsTemps | do_get_interactions () const |
virtual ModelObjectsTemp | do_get_outputs () const =0 |
virtual void | handle_set_has_required_score_states (bool) |
Protected Member Functions inherited from IMP::Object | |
Object (std::string name) | |
Construct an object with the given name. More... | |
virtual void | do_destroy () |
|
protectedpure virtual |
Get any Particle, Container or other ModelObjects read by this during evaluation. If you read everything in a container, you can just return that container.
Implemented in IMP::atom::WritePDBOptimizerState, IMP::container::ExclusiveConsecutivePairContainer, IMP::core::TransformationSymmetryMover, IMP::em2d::Em2DRestraint, IMP::Particle, IMP::OptimizerState, IMP::isd::GaussianEMRestraint, IMP::pmi::TransformMover, IMP::em2d::ProjectionParametersScoreState, IMP::core::IncrementalScoringFunction, IMP::container::ClosePairContainer, IMP::core::RigidBodyTunneler, IMP::core::MSConnectivityRestraint, IMP::isd::CysteineCrossLinkRestraint, IMP::isd::FretRestraint, IMP::pmi::CompositeRestraint, IMP::core::RigidBodyUmbrella, IMP::isd::TALOSRestraint, IMP::core::ExcludedVolumeRestraint, IMP::em2d::ParticlesDummyRestraint, IMP::multifit::ComplementarityRestraint, IMP::isd::GaussianProcessInterpolationRestraint, IMP::isd::LognormalAmbiguousRestraint, IMP::container::CloseBipartitePairContainer, IMP::atom::CHARMMStereochemistryRestraint, IMP::container::PredicatePairsRestraint, IMP::container::PredicateQuadsRestraint, IMP::container::PredicateSingletonsRestraint, IMP::container::PredicateTripletsRestraint, IMP::container::PairsConstraint, IMP::container::QuadsConstraint, IMP::container::SingletonsConstraint, IMP::container::TripletsConstraint, IMP::isd::AtomicCrossLinkMSRestraint, IMP::container::ConsecutivePairContainer, IMP::em::FitRestraint, IMP::em2d::PCAFitRestraint, IMP::container::ConnectingPairContainer, IMP::core::BallMover, IMP::core::PairConstraint, IMP::core::PairRestraint, IMP::core::QuadConstraint, IMP::core::QuadRestraint, IMP::core::SingletonConstraint, IMP::core::SingletonRestraint, IMP::core::TripletConstraint, IMP::core::TripletRestraint, IMP::isd::CrossLinkMSRestraint, IMP::em2d::Fine2DRegistrationRestraint, IMP::isd::MarginalNOERestraint, IMP::core::ConnectivityRestraint, IMP::container::DistributePairsScoreState, IMP::container::DistributeQuadsScoreState, IMP::container::DistributeSingletonsScoreState, IMP::container::DistributeTripletsScoreState, IMP::core::RigidBodyMover, IMP::em2d::DummyRestraint, IMP::Optimizer, IMP::saxs::Restraint, IMP::isd::GaussianRestraint, IMP::isd::LognormalRestraint, IMP::isd::MarginalHBondRestraint, IMP::container::PairsRestraint, IMP::container::QuadsRestraint, IMP::container::SingletonsRestraint, IMP::container::TripletsRestraint, IMP::em::EnvelopeFitRestraint, IMP::kinematics::KinematicForestScoreState, IMP::atom::CADihedralRestraint, IMP::domino::DependencyScoreState, IMP::atom::BondPairContainer, IMP::container::AllBipartitePairContainer, IMP::core::NormalMover, IMP::em::PCAFitRestraint, IMP::example::ExampleComplexRestraint, IMP::modeller::MultipleBinormalRestraint, IMP::multifit::DummyRestraint, IMP::core::DiameterRestraint, IMP::atom::CAAngleRestraint, IMP::container::AllPairContainer, IMP::em::EnvelopePenetrationRestraint, IMP::pmi::SigmoidRestraintSphere, IMP::isd::NOERestraint, IMP::multifit::WeightedExcludedVolumeRestraint, IMP::pmi::MembraneRestraint, IMP::em::DensityFillingRestraint, IMP::isd::AmbiguousRestraint, IMP::container::PairContainerStatistics, IMP::container::QuadContainerStatistics, IMP::container::SingletonContainerStatistics, IMP::container::TripletContainerStatistics, IMP::isd::AmbiguousNOERestraint, IMP::container::MinimumPairRestraint, IMP::container::MinimumQuadRestraint, IMP::container::MinimumSingletonRestraint, IMP::container::MinimumTripletRestraint, IMP::saxs::RadiusOfGyrationRestraint, IMP::core::DihedralRestraint, IMP::kinematics::RevoluteJointMover, IMP::multifit::RadiusOfGyrationRestraint, IMP::core::MoveStatisticsScoreState, IMP::core::MinimumRestraint, IMP::isd::vonMisesKappaJeffreysRestraint, IMP::symmetry::RigidBodyMover, IMP::example::ExampleRestraint, IMP::isd::MolecularDynamicsMover, IMP::isd::vonMisesKappaConjugateRestraint, IMP::core::SerialMover, IMP::isd::LogWrapper, IMP::atom::EzRestraint, IMP::core::NeighborsTable, IMP::isd::UniformPrior, IMP::core::ConstantRestraint, IMP::symmetry::BallMover, IMP::example::ExampleConstraint, IMP::isd::ISDRestraint, IMP::core::ChecksScoreState, IMP::core::VolumeRestraint, IMP::isd::WeightMover, IMP::isd::WeightRestraint, IMP::isd::JeffreysRestraint, and IMP::misc::StateAdaptor.
|
protectedvirtual |
Override if this if not all inputs interact with all outputs. This is rarely something you want to do.
|
protectedpure virtual |
Get any Particle, Container or other ModelObjects changed by this during evaluation. This is only useful for ScoreStates, at the moment.
Implemented in IMP::Restraint, IMP::Particle, IMP::OptimizerState, IMP::em2d::ProjectionParametersScoreState, IMP::core::MonteCarloMover, IMP::container::PairsConstraint, IMP::container::QuadsConstraint, IMP::container::SingletonsConstraint, IMP::container::TripletsConstraint, IMP::Container, IMP::core::PairConstraint, IMP::core::QuadConstraint, IMP::core::SingletonConstraint, IMP::core::TripletConstraint, IMP::ScoringFunction, IMP::Optimizer, IMP::container::DistributePairsScoreState, IMP::container::DistributeQuadsScoreState, IMP::container::DistributeSingletonsScoreState, IMP::container::DistributeTripletsScoreState, IMP::kinematics::KinematicForestScoreState, IMP::domino::DependencyScoreState, IMP::container::PairContainerStatistics, IMP::container::QuadContainerStatistics, IMP::container::SingletonContainerStatistics, IMP::container::TripletContainerStatistics, IMP::core::MoveStatisticsScoreState, IMP::core::NeighborsTable, IMP::example::ExampleConstraint, IMP::core::ChecksScoreState, and IMP::misc::StateAdaptor.
bool IMP::ModelObject::get_has_dependencies | ( | ) | const |
Return whether this object has dependencies computed.
bool IMP::ModelObject::get_has_required_score_states | ( | ) | const |
Return whether score states are computed.
ModelObjectsTemp IMP::ModelObject::get_inputs | ( | ) | const |
get_has_dependencies() must be true.
ModelObjectsTemps IMP::ModelObject::get_interactions | ( | ) | const |
Get the interacting sets induced by this ModelObject.
That is, the particles in each ModelObjectsTemp in the list have some sort of computed relation with one another and none with disjoint other sets in the list.
ModelObjectsTemp IMP::ModelObject::get_outputs | ( | ) | const |
get_has_dependencies() must be true.
const ScoreStatesTemp& IMP::ModelObject::get_required_score_states | ( | ) | const |
Get the score states that are ancestors of this in the dependency graph.
|
protectedvirtual |
Called when set_has_required_score_states() is called.
Reimplemented in IMP::core::IncrementalScoringFunction.
Definition at line 69 of file ModelObject.h.
void IMP::ModelObject::set_has_dependencies | ( | bool | tf | ) |
Either invalidate the dependencies or ensure they are correct.
void IMP::ModelObject::set_has_required_score_states | ( | bool | tf | ) |
Compute the required score states.