|
Rosetta 3.5
|
#include <SymmMinimalistInteractionGraph.hh>


Public Member Functions | |
| SymmMinimalistNode (InteractionGraphBase *owner, int node_id, int num_states) | |
| main constructor, no default ctor, uncopyable More... | |
| virtual | ~SymmMinimalistNode () |
| virtual dstor More... | |
| virtual void | prepare_for_simulated_annealing () |
| symmin ig does not have to do anything before sim annealing begins More... | |
| virtual void | print () const |
| write internal energy and bookkeeping data to standard out More... | |
| virtual bool | state_unassigned () const |
| state 0 represents the unasigned state More... | |
| virtual core::PackerEnergy | get_totalE () const |
| return the total energy for this node; includes full energies to neighboring residues More... | |
| void | assign_zero_state () |
| set to state 0 More... | |
| void | assign_state (int new_state) |
| set to a particular state – updates the energies internally More... | |
| void | partial_assign_state (int new_state) |
| first half of an entire-graph state assignment that avoids unnecessary energy updates as produced in assign_state. Adjust all node's states first, then update all energies. More... | |
| void | complete_state_assignment () |
| second half of the entire-graph state assignment. More... | |
| int | get_current_state () const |
| return the index of the currently assigned state More... | |
| core::PackerEnergy | get_one_body_energy_current_state () const |
| return the one-body energy for the currently assigned state More... | |
| core::PackerEnergy | project_deltaE_for_substitution (int alternate_state, core::PackerEnergy &prev_node_energy) |
| compute the change in energy induced by substituting the currently assigned state with some alternative state More... | |
| void | commit_considered_substitution () |
| proceed to change the currently assigned state to the alternative state considered in the last call to project_deltaE_for_substitution More... | |
| void | acknowledge_last_substititon_not_committed () |
| update bookkeeping info to acknolwedge that the last alternative state considered was not in fact chosen for the currently assigned state. More... | |
| core::PackerEnergy | compute_pair_energy_for_current_state (int edge_making_energy_request) |
| comupute the interaction energy between the currently assigned state on this residue and the currently assigned state on a neighboring residue, identified by the index of the edge connecting the two More... | |
| core::PackerEnergy | compute_pair_energy_for_alternate_state (int edge_making_energy_request) |
| comupute the interaction energy between the alternate state being considered on this residue and the currently assigned state on a neighboring residue, identified by the index of the edge connecting the two More... | |
| void | acknowledge_neighbors_state_substitution (int edge_to_altered_neighbor, core::PackerEnergy new_edge_energy, int other_node_new_state) |
| void | acknowledge_neighbors_partial_state_substitution (int edge_to_altered_neighbor, int other_node_new_state) |
| void | print_internal_energies () const |
| void | update_internal_energy_sums () |
| virtual unsigned int | count_static_memory () const |
| virtual unsigned int | count_dynamic_memory () const |
| SymmMinimalistEdge const * | get_incident_symmin_edge (int index) const |
| SymmMinimalistEdge * | get_incident_symmin_edge (int index) |
| SymmMinimalistNode const * | get_adjacent_symmin_node (int index) const |
| SymmMinimalistNode * | get_adjacent_symmin_node (int index) |
| SymmMinimalistInteractionGraph const * | get_symmin_ig_owner () const |
| SymmMinimalistInteractionGraph * | get_symmin_ig_owner () |
Public Member Functions inherited from core::pack::interaction_graph::SymmOnTheFlyNode | |
| SymmOnTheFlyNode (InteractionGraphBase *owner, int node_id, int num_states) | |
| main constructor, no default or copy constructors More... | |
| virtual | ~SymmOnTheFlyNode () |
| void | set_rotamers (rotamer_set::RotamerSetCOP rotamers) |
| virtual void | zero_one_body_energies () |
| virtual void | add_to_one_body_energies (ObjexxFCL::FArray1< core::PackerEnergy > &energy1b) |
| virtual void | update_one_body_energy (int state, core::PackerEnergy energy) |
| virtual void | set_one_body_energy (int state, core::PackerEnergy energy) |
| virtual void | add_to_one_body_energy (int state, core::PackerEnergy energy) |
| virtual void | zero_one_body_energy (int state) |
| int | get_num_res_types () const |
| the number of distinct ResidueType objects pointed to by all of the rotamrs for this node. More... | |
| int | get_num_restype_groups () const |
| the number of ResidueType groups, as defined by the RotamerSet's logic for grouping different ResidueType objects which have the same "name3" and the same neighbor radius. More... | |
| utility::vector1< int > & | get_num_states_for_restype_group () |
| utility::vector1< int > const & | get_num_states_for_restype_group () const |
| int | get_num_states_for_restype_group (int restype_group) |
| int | get_state_offset_for_restype_group (int restype_group) const |
| core::PackerEnergy | get_one_body_energy (int state) const |
| bool | distinguish_backbone_and_sidechain () const |
| void | distinguish_backbone_and_sidechain (bool setting) |
| core::PackerEnergy | compute_rotamer_pair_energy (int edge_making_energy_request, int state_this, int state_other) const |
| conformation::Residue const & | get_rotamer (int state, int subunit) const |
| Returns a reference to the rotamer object in the requested subunit. This reference is valid only until the next call to get_rotamer, and which point, the coordinates inside the requested rotamer may change. More... | |
| BoundingSphere | sc_bounding_sphere (int state, int subunit) const |
| Returns a bounding sphere for the sidechain of a given state on a particular subunit. More... | |
| BoundingSphere | bb_bounding_sphere (int subunit) const |
| Returns a bounding sphere for the backbone on a particular subunit. More... | |
| SymmOnTheFlyEdge * | get_incident_otf_edge (int edge) |
| SymmOnTheFlyEdge const * | get_incident_otf_edge (int edge) const |
| SymmOnTheFlyNode * | get_adjacent_otf_node (int index) |
| SymmOnTheFlyNode const * | get_adjacent_otf_node (int index) const |
| SymmOnTheFlyInteractionGraph * | get_on_the_fly_owner () |
| SymmOnTheFlyInteractionGraph const * | get_on_the_fly_owner () const |
Public Member Functions inherited from core::pack::interaction_graph::FixedBBNode | |
| virtual | ~FixedBBNode () |
| FixedBBNode (InteractionGraphBase *owner, int node_id, int num_states) | |
Public Member Functions inherited from core::pack::interaction_graph::NodeBase | |
| virtual | ~NodeBase () |
| virtual destructor More... | |
| NodeBase (InteractionGraphBase *, int node_id, int num_states) | |
| Main constructor, no default constructor nor copy constructor. More... | |
| int | get_num_states () const |
| returns the number of states for this node More... | |
| std::list< EdgeBase * >::iterator | add_edge (EdgeBase *edge_ptr) |
| adds edge pointer to edge list; returns an iterator to the new list element More... | |
| void | drop_edge (std::list< EdgeBase * >::iterator edge_iterator) |
| removes an edge iterator from the node's edge list More... | |
| void | drop_all_edges () |
| deletes all edges incident upon this node More... | |
| EdgeBase * | find_edge (int other_node_index) const |
| a slow (linear) search for an edge. The edge is identified by the index of the node to which the edge connects this node. Returns NULL when there is no such connecting edge. More... | |
| void | depth_first_connected_component_counting () |
| performs a depth first traversal of the graph. Each node informs the graph that the traversal resulted in arriving at the node. More... | |
| std::list< EdgeBase * > ::const_iterator | edge_list_begin () |
| std::list< EdgeBase * > ::const_iterator | edge_list_end () |
| int | get_node_index () const |
| int | get_num_incident_edges () const |
| int | get_num_edges_to_smaller_indexed_nodes () const |
| int | get_num_edges_to_larger_indexed_nodes () const |
| EdgeBase const * | get_incident_edge (int index) const |
| These functions are public for the sake of writing good unit tests. More... | |
| EdgeBase * | get_incident_edge (int index) |
| int | get_index_of_adjacent_node (int index) const |
| NodeBase const * | get_adjacent_node (int index) const |
| NodeBase * | get_adjacent_node (int index) |
Private Member Functions | |
| void | update_internal_vectors () |
Additional Inherited Members | |
Public Types inherited from core::pack::interaction_graph::SymmOnTheFlyNode | |
| typedef std::pair< Vector, Real > | BoundingSphere |
Protected Member Functions inherited from core::pack::interaction_graph::NodeBase | |
| void | update_edge_vector () |
| converts edge-list to edge-vector representation More... | |
| bool | get_edge_vector_up_to_date () const |
| InteractionGraphBase const * | get_owner () const |
| InteractionGraphBase * | get_owner () |
Definition at line 32 of file SymmMinimalistInteractionGraph.hh.
| core::pack::interaction_graph::SymmMinimalistNode::SymmMinimalistNode | ( | InteractionGraphBase * | owner, |
| int | node_id, | ||
| int | num_states | ||
| ) |
main constructor, no default ctor, uncopyable
main constructor, no default or copy constructors
Definition at line 48 of file SymmMinimalistInteractionGraph.cc.
Referenced by count_static_memory().
|
virtual |
virtual dstor
Definition at line 65 of file SymmMinimalistInteractionGraph.cc.
| void core::pack::interaction_graph::SymmMinimalistNode::acknowledge_last_substititon_not_committed | ( | ) |
update bookkeeping info to acknolwedge that the last alternative state considered was not in fact chosen for the currently assigned state.
Definition at line 539 of file SymmMinimalistInteractionGraph.cc.
References alternate_state_is_being_considered_.
Referenced by core::pack::interaction_graph::SymmMinimalistInteractionGraph::consider_substitution().
| void core::pack::interaction_graph::SymmMinimalistNode::acknowledge_neighbors_partial_state_substitution | ( | int | edge_to_altered_neighbor, |
| int | other_node_new_state | ||
| ) |
Definition at line 569 of file SymmMinimalistInteractionGraph.cc.
References curr_state_total_energy_, curr_state_two_body_energies_, and neighbors_curr_state_.
Referenced by core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_partial_state_change().
|
inline |
Definition at line 421 of file SymmMinimalistInteractionGraph.hh.
References curr_state_total_energy_, curr_state_two_body_energies_, and neighbors_curr_state_.
Referenced by core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_state_change(), core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_state_zeroed(), and core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_substitution().
| void core::pack::interaction_graph::SymmMinimalistNode::assign_state | ( | int | new_state) |
set to a particular state – updates the energies internally
Definition at line 148 of file SymmMinimalistInteractionGraph.cc.
References core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_state_change(), alternate_state_is_being_considered_, assign_zero_state(), curr_state_one_body_energy_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, get_incident_symmin_edge(), core::pack::interaction_graph::NodeBase::get_node_index(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), core::pack::interaction_graph::NodeBase::get_num_states(), and core::pack::interaction_graph::SymmOnTheFlyNode::get_one_body_energy().
Referenced by core::pack::interaction_graph::SymmMinimalistInteractionGraph::set_state_for_node().
|
virtual |
set to state 0
puts the symminNode in the unassigned state
Implements core::pack::interaction_graph::NodeBase.
Definition at line 123 of file SymmMinimalistInteractionGraph.cc.
References alternate_state_, alternate_state_is_being_considered_, curr_state_one_body_energy_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, get_incident_symmin_edge(), core::pack::interaction_graph::NodeBase::get_node_index(), and core::pack::interaction_graph::NodeBase::get_num_incident_edges().
Referenced by assign_state(), core::pack::interaction_graph::SymmMinimalistInteractionGraph::blanket_assign_state_0(), and partial_assign_state().
| void core::pack::interaction_graph::SymmMinimalistNode::commit_considered_substitution | ( | ) |
proceed to change the currently assigned state to the alternative state considered in the last call to project_deltaE_for_substitution
commits the last substitution that was considered by this Node
Definition at line 503 of file SymmMinimalistInteractionGraph.cc.
References core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_substitution(), alternate_state_, alternate_state_is_being_considered_, alternate_state_one_body_energy_, alternate_state_total_energy_, alternate_state_two_body_energies_, curr_state_one_body_energy_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, get_incident_symmin_edge(), core::pack::interaction_graph::NodeBase::get_node_index(), and core::pack::interaction_graph::NodeBase::get_num_incident_edges().
Referenced by core::pack::interaction_graph::SymmMinimalistInteractionGraph::commit_considered_substitution().
| void core::pack::interaction_graph::SymmMinimalistNode::complete_state_assignment | ( | ) |
second half of the entire-graph state assignment.
Definition at line 199 of file SymmMinimalistInteractionGraph.cc.
References curr_state_one_body_energy_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, get_incident_symmin_edge(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), and core::pack::interaction_graph::SymmOnTheFlyNode::get_one_body_energy().
Referenced by core::pack::interaction_graph::SymmMinimalistInteractionGraph::set_network_state().
| core::PackerEnergy core::pack::interaction_graph::SymmMinimalistNode::compute_pair_energy_for_alternate_state | ( | int | edge_making_energy_request) |
comupute the interaction energy between the alternate state being considered on this residue and the currently assigned state on a neighboring residue, identified by the index of the edge connecting the two
Definition at line 557 of file SymmMinimalistInteractionGraph.cc.
References alternate_state_, core::pack::interaction_graph::SymmOnTheFlyNode::compute_rotamer_pair_energy(), and neighbors_curr_state_.
| core::PackerEnergy core::pack::interaction_graph::SymmMinimalistNode::compute_pair_energy_for_current_state | ( | int | edge_making_energy_request) |
comupute the interaction energy between the currently assigned state on this residue and the currently assigned state on a neighboring residue, identified by the index of the edge connecting the two
Definition at line 545 of file SymmMinimalistInteractionGraph.cc.
References core::pack::interaction_graph::SymmOnTheFlyNode::compute_rotamer_pair_energy(), current_state_, and neighbors_curr_state_.
|
virtual |
reports the amount of dynamic memory this node allocates recursing to its base class
Reimplemented from core::pack::interaction_graph::SymmOnTheFlyNode.
Definition at line 109 of file SymmMinimalistInteractionGraph.cc.
References alternate_state_two_body_energies_, core::pack::interaction_graph::SymmOnTheFlyNode::count_dynamic_memory(), curr_state_two_body_energies_, and neighbors_curr_state_.
|
virtual |
Implements core::pack::interaction_graph::SymmOnTheFlyNode.
Definition at line 103 of file SymmMinimalistInteractionGraph.cc.
References SymmMinimalistNode().
|
inline |
Definition at line 359 of file SymmMinimalistInteractionGraph.hh.
References core::pack::interaction_graph::NodeBase::get_adjacent_node().
|
inline |
Definition at line 366 of file SymmMinimalistInteractionGraph.hh.
References core::pack::interaction_graph::NodeBase::get_adjacent_node().
|
inline |
return the index of the currently assigned state
Definition at line 67 of file SymmMinimalistInteractionGraph.hh.
References current_state_.
Referenced by core::pack::interaction_graph::SymmMinimalistInteractionGraph::print_current_state_assignment().
|
inline |
Definition at line 345 of file SymmMinimalistInteractionGraph.hh.
References core::pack::interaction_graph::NodeBase::get_incident_edge().
Referenced by assign_state(), assign_zero_state(), commit_considered_substitution(), complete_state_assignment(), partial_assign_state(), and update_internal_energy_sums().
|
inline |
Definition at line 352 of file SymmMinimalistInteractionGraph.hh.
References core::pack::interaction_graph::NodeBase::get_incident_edge().
|
inline |
return the one-body energy for the currently assigned state
Definition at line 72 of file SymmMinimalistInteractionGraph.hh.
References curr_state_one_body_energy_.
Referenced by core::pack::interaction_graph::SymmMinimalistInteractionGraph::get_energy_sum_for_vertex_group().
|
inline |
Definition at line 331 of file SymmMinimalistInteractionGraph.hh.
References core::pack::interaction_graph::NodeBase::get_owner().
|
inline |
Definition at line 338 of file SymmMinimalistInteractionGraph.hh.
References core::pack::interaction_graph::NodeBase::get_owner().
|
inlinevirtual |
return the total energy for this node; includes full energies to neighboring residues
Definition at line 53 of file SymmMinimalistInteractionGraph.hh.
References curr_state_total_energy_.
| void core::pack::interaction_graph::SymmMinimalistNode::partial_assign_state | ( | int | new_state) |
first half of an entire-graph state assignment that avoids unnecessary energy updates as produced in assign_state. Adjust all node's states first, then update all energies.
Definition at line 180 of file SymmMinimalistInteractionGraph.cc.
References core::pack::interaction_graph::SymmMinimalistEdge::acknowledge_partial_state_change(), alternate_state_is_being_considered_, assign_zero_state(), current_state_, get_incident_symmin_edge(), core::pack::interaction_graph::NodeBase::get_node_index(), and core::pack::interaction_graph::NodeBase::get_num_incident_edges().
Referenced by core::pack::interaction_graph::SymmMinimalistInteractionGraph::set_network_state().
|
virtual |
symmin ig does not have to do anything before sim annealing begins
Implements core::pack::interaction_graph::NodeBase.
Definition at line 69 of file SymmMinimalistInteractionGraph.cc.
References already_prepped_for_simA_, core::pack::interaction_graph::NodeBase::get_edge_vector_up_to_date(), and update_internal_vectors().
|
virtual |
write internal energy and bookkeeping data to standard out
Implements core::pack::interaction_graph::NodeBase.
Definition at line 77 of file SymmMinimalistInteractionGraph.cc.
References alternate_state_is_being_considered_, alternate_state_one_body_energy_, alternate_state_two_body_energies_, curr_state_one_body_energy_, curr_state_two_body_energies_, current_state_, core::pack::interaction_graph::NodeBase::get_index_of_adjacent_node(), core::pack::interaction_graph::NodeBase::get_node_index(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), core::pack::interaction_graph::NodeBase::get_num_states(), and core::pack::interaction_graph::T().
Referenced by core::pack::interaction_graph::SymmMinimalistInteractionGraph::print_current_state_assignment().
| void core::pack::interaction_graph::SymmMinimalistNode::print_internal_energies | ( | ) | const |
Definition at line 580 of file SymmMinimalistInteractionGraph.cc.
References curr_state_one_body_energy_, curr_state_total_energy_, curr_state_two_body_energies_, current_state_, core::pack::interaction_graph::NodeBase::get_index_of_adjacent_node(), core::pack::interaction_graph::NodeBase::get_num_incident_edges(), and core::pack::interaction_graph::T().
| core::PackerEnergy core::pack::interaction_graph::SymmMinimalistNode::project_deltaE_for_substitution | ( | int | alternate_state, |
| core::PackerEnergy & | prev_node_energy | ||
| ) |
compute the change in energy induced by substituting the currently assigned state with some alternative state
Definition at line 216 of file SymmMinimalistInteractionGraph.cc.
Referenced by core::pack::interaction_graph::SymmMinimalistInteractionGraph::consider_substitution().
|
inlinevirtual |
state 0 represents the unasigned state
Implements core::pack::interaction_graph::NodeBase.
Definition at line 51 of file SymmMinimalistInteractionGraph.hh.
References current_state_.
| void core::pack::interaction_graph::SymmMinimalistNode::update_internal_energy_sums | ( | ) |
Definition at line 595 of file SymmMinimalistInteractionGraph.cc.
References curr_state_one_body_energy_, curr_state_total_energy_, core::pack::interaction_graph::SymmMinimalistEdge::get_current_two_body_energy(), core::pack::interaction_graph::NodeBase::get_edge_vector_up_to_date(), get_incident_symmin_edge(), and core::pack::interaction_graph::NodeBase::get_num_incident_edges().
|
private |
Definition at line 606 of file SymmMinimalistInteractionGraph.cc.
References alternate_state_two_body_energies_, curr_state_two_body_energies_, core::pack::interaction_graph::NodeBase::get_num_incident_edges(), neighbors_curr_state_, and core::pack::interaction_graph::NodeBase::update_edge_vector().
Referenced by prepare_for_simulated_annealing().
|
private |
Definition at line 164 of file SymmMinimalistInteractionGraph.hh.
Referenced by prepare_for_simulated_annealing().
|
private |
Definition at line 158 of file SymmMinimalistInteractionGraph.hh.
Referenced by assign_zero_state(), commit_considered_substitution(), and compute_pair_energy_for_alternate_state().
|
private |
Definition at line 163 of file SymmMinimalistInteractionGraph.hh.
Referenced by acknowledge_last_substititon_not_committed(), assign_state(), assign_zero_state(), commit_considered_substitution(), partial_assign_state(), and print().
|
private |
Definition at line 159 of file SymmMinimalistInteractionGraph.hh.
Referenced by commit_considered_substitution(), and print().
|
private |
Definition at line 160 of file SymmMinimalistInteractionGraph.hh.
Referenced by commit_considered_substitution().
|
private |
Definition at line 161 of file SymmMinimalistInteractionGraph.hh.
Referenced by commit_considered_substitution(), count_dynamic_memory(), print(), and update_internal_vectors().
|
private |
Definition at line 154 of file SymmMinimalistInteractionGraph.hh.
Referenced by assign_state(), assign_zero_state(), commit_considered_substitution(), complete_state_assignment(), get_one_body_energy_current_state(), print(), print_internal_energies(), and update_internal_energy_sums().
|
private |
Definition at line 155 of file SymmMinimalistInteractionGraph.hh.
Referenced by acknowledge_neighbors_partial_state_substitution(), acknowledge_neighbors_state_substitution(), assign_state(), assign_zero_state(), commit_considered_substitution(), complete_state_assignment(), get_totalE(), print_internal_energies(), and update_internal_energy_sums().
|
private |
Definition at line 156 of file SymmMinimalistInteractionGraph.hh.
Referenced by acknowledge_neighbors_partial_state_substitution(), acknowledge_neighbors_state_substitution(), assign_state(), assign_zero_state(), commit_considered_substitution(), complete_state_assignment(), count_dynamic_memory(), print(), print_internal_energies(), and update_internal_vectors().
|
private |
Definition at line 153 of file SymmMinimalistInteractionGraph.hh.
Referenced by assign_state(), assign_zero_state(), commit_considered_substitution(), complete_state_assignment(), compute_pair_energy_for_current_state(), get_current_state(), partial_assign_state(), print(), print_internal_energies(), and state_unassigned().
|
private |
Data.
Definition at line 151 of file SymmMinimalistInteractionGraph.hh.
Referenced by acknowledge_neighbors_partial_state_substitution(), acknowledge_neighbors_state_substitution(), compute_pair_energy_for_alternate_state(), compute_pair_energy_for_current_state(), count_dynamic_memory(), and update_internal_vectors().
1.8.4