[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-dev] Ordering among score_states (and other things)



Daniel Russel wrote:
Model has a counter, initially set to 0.

When Model::evaluate is called, it calls update on each ScoreState is has a pointer to, passing the counter value to the ScoreState.

When a ScoreState::update is called, it checks its stored value for the counter. If the counter value is one it has not seen yet, then it performs an update and stores the counter value.

Model increments the counter.

OK, makes sense to me, and seems like a reasonable improvement.

	Ben
--
                      http://salilab.org/~ben/
"It is a capital mistake to theorize before one has data."
	- Sir Arthur Conan Doyle