IMP  2.2.0
The Integrative Modeling Platform
IMP::kernel::ModelObject Class Referenceabstract

#include <IMP/kernel/ModelObject.h>

+ Inheritance diagram for IMP::kernel::ModelObject:

Public Member Functions

 ModelObject (kernel::Model *m, std::string name)
 
bool get_has_dependencies () const
 Return whether this object has dependencies computed.
 
bool get_has_required_score_states () const
 
ModelObjectsTemp get_inputs () const
 
ModelObjectsTemps get_interactions () const
 
Modelget_model () const
 
ModelObjectsTemp get_outputs () const
 
const ScoreStatesTempget_required_score_states () const
 
void set_has_dependencies (bool tf)
 
void set_has_required_score_states (bool tf)
 
- Public Member Functions inherited from IMP::base::Object
virtual void clear_caches ()
 
virtual void do_destroy ()
 
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.
 
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::base::Object
 Object (std::string name)
 Construct an object with the given name. More...
 

Detailed Description

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 kernel/ModelObject.h.

Member Function Documentation

virtual ModelObjectsTemp IMP::kernel::ModelObject::do_get_inputs ( ) const
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::em2d::Em2DRestraint, IMP::kernel::OptimizerState, IMP::kernel::Particle, IMP::em2d::ProjectionParametersScoreState, IMP::core::IncrementalScoringFunction, IMP::container::ClosePairContainer, IMP::isd::FretRestraint, IMP::isd::CysteineCrossLinkRestraint, IMP::core::MSConnectivityRestraint, IMP::isd::TALOSRestraint, IMP::core::ExcludedVolumeRestraint, IMP::em2d::ParticlesDummyRestraint, IMP::multifit::ComplementarityRestraint, IMP::core::ConnectivityRestraint, IMP::container::CloseBipartitePairContainer, IMP::isd::GaussianProcessInterpolationRestraint, IMP::container::PredicatePairsRestraint, IMP::container::PredicateQuadsRestraint, IMP::container::PredicateSingletonsRestraint, IMP::container::PredicateTripletsRestraint, IMP::isd::MarginalNOERestraint, IMP::container::PairsConstraint, IMP::container::QuadsConstraint, IMP::container::SingletonsConstraint, IMP::container::TripletsConstraint, IMP::core::RigidBodyTunneler, IMP::container::ConsecutivePairContainer, IMP::em::FitRestraint, IMP::container::ConnectingPairContainer, IMP::core::BallMover, IMP::core::PairConstraint, IMP::core::QuadConstraint, IMP::core::SingletonConstraint, IMP::core::TripletConstraint, IMP::em2d::Fine2DRegistrationRestraint, IMP::isd::MarginalHBondRestraint, IMP::container::DistributePairsScoreState, IMP::container::DistributeQuadsScoreState, IMP::container::DistributeSingletonsScoreState, IMP::container::DistributeTripletsScoreState, IMP::core::RigidBodyMover, IMP::container::PairsRestraint, IMP::container::QuadsRestraint, IMP::container::SingletonsRestraint, IMP::container::TripletsRestraint, IMP::core::PairRestraint, IMP::core::QuadRestraint, IMP::core::SingletonRestraint, IMP::core::TripletRestraint, IMP::em2d::DummyRestraint, IMP::saxs::Restraint, IMP::isd::GaussianRestraint, IMP::isd::LognormalRestraint, IMP::kernel::Optimizer, IMP::em::EnvelopeFitRestraint, IMP::kinematics::KinematicForestScoreState, IMP::atom::CHARMMStereochemistryRestraint, IMP::container::AllBipartitePairContainer, IMP::domino::DependencyScoreState, IMP::atom::BondPairContainer, IMP::core::NormalMover, IMP::em::PCAFitRestraint, IMP::container::AllPairContainer, IMP::example::ExampleComplexRestraint, IMP::modeller::MultipleBinormalRestraint, IMP::isd::AmbiguousRestraint, IMP::core::DiameterRestraint, IMP::isd::AmbiguousNOERestraint, IMP::em::EnvelopePenetrationRestraint, IMP::isd::NOERestraint, IMP::multifit::WeightedExcludedVolumeRestraint, IMP::em::DensityFillingRestraint, IMP::container::PairContainerStatistics, IMP::container::QuadContainerStatistics, IMP::container::SingletonContainerStatistics, IMP::container::TripletContainerStatistics, IMP::container::MinimumPairRestraint, IMP::container::MinimumQuadRestraint, IMP::container::MinimumSingletonRestraint, IMP::container::MinimumTripletRestraint, IMP::multifit::DummyRestraint, IMP::isd::vonMisesKappaJeffreysRestraint, IMP::saxs::RadiusOfGyrationRestraint, IMP::isd::vonMisesKappaConjugateRestraint, IMP::multifit::RadiusOfGyrationRestraint, IMP::core::MoveStatisticsScoreState, IMP::core::MinimumRestraint, IMP::symmetry::RigidBodyMover, IMP::core::DihedralRestraint, IMP::example::ExampleRestraint, IMP::isd::MolecularDynamicsMover, IMP::isd::WeightRestraint, IMP::core::SerialMover, IMP::core::NeighborsTable, IMP::isd::WeightMover, IMP::atom::EzRestraint, IMP::core::ConstantRestraint, IMP::symmetry::BallMover, IMP::example::ExampleConstraint, IMP::core::ChecksScoreState, IMP::core::VolumeRestraint, IMP::isd::JeffreysRestraint, and IMP::misc::StateAdaptor.

virtual ModelObjectsTemps IMP::kernel::ModelObject::do_get_interactions ( ) const
protectedvirtual

Override if this if not all inputs interact with all outputs. This is rarely something you want to do.

bool IMP::kernel::ModelObject::get_has_required_score_states ( ) const

Return whether score states are computed.

ModelObjectsTemp IMP::kernel::ModelObject::get_inputs ( ) const

get_has_dependencies() must be true.

ModelObjectsTemps IMP::kernel::ModelObject::get_interactions ( ) const

Get the interacting sets induce 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::kernel::ModelObject::get_outputs ( ) const

get_has_dependencies() must be true.

const ScoreStatesTemp& IMP::kernel::ModelObject::get_required_score_states ( ) const

Get the score states that are ancestors of this in the dependency graph.

virtual void IMP::kernel::ModelObject::handle_set_has_required_score_states ( bool  )
protectedvirtual

Called when set_has_required_score_states() is called.

Reimplemented in IMP::core::IncrementalScoringFunction.

Definition at line 70 of file kernel/ModelObject.h.

void IMP::kernel::ModelObject::set_has_dependencies ( bool  tf)

Either invalidate the dependncies or ensure they are correct.

void IMP::kernel::ModelObject::set_has_required_score_states ( bool  tf)

Compute the required score states.


The documentation for this class was generated from the following file: