Thread Previous • Date Previous • Date Next • Thread Next |
On 03/09/10 10:35, Chiara + Eudoxos wrote:
Oh, my bad. I see isActivated is a function, not a flag. Maybe I was remembering some very old yade version? The usage I got in mind would now be implemented adding a "activated" flag (or, say, isNotDead ;)) and making isActivated return it.I've been using the isActivated flag sometimes, to turn on/off some engines without removing them. I guess isDead is better since you don't have to add "if (!isActivated) return;" in the go function?isActivated (as I see it) serves a different purpose: it is for the engine to decide whether it will run or not (such as the periodic engine which runs only sometimes),
It is the same functionality you added a different way, I think. Bruno -- _______________ Bruno Chareyre Associate Professor ENSE³ - Grenoble INP Lab. 3SR BP 53 - 38041, Grenoble cedex 9 - France Tél : +33 4 56 52 86 21 Fax : +33 4 76 82 70 43 ________________
Thread Previous • Date Previous • Date Next • Thread Next |