yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05625
Re: new trunk features you might find useful :-)
> 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), whereas the dead flag is for the user to
activate/deactivate the engine without having to modify O.engines
directly (it cannot be done from an engine, requiring some hacks which
are less straightforward).
Cheers, Vaclav
Follow ups
References