8 May
2008
8 May
'08
1:31 p.m.
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
--
ben@salilab.org http://salilab.org/~ben/
"It is a capital mistake to theorize before one has data."
- Sir Arthur Conan Doyle