Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calling simulation.stop no longer resets the alpha, so a subsequent call to simulation.start now resumes the simulation, and you can call simulation.tick to run the simulation manually. This commit also removes the start event. There’s not much of a point to the start event since it’s impossible to listen for it in the normal case: the event is dispatched during the construction of the simulation before any listeners can be registered. Even in other cases, the simulation is always restarted manually, so you could always notify a listener manually at the same time. Furthermore, supporting a start event would require us to track whether the timer is running, so it’s simpler to just leave it out. (And lastly, eliminating the start event avoids some confusion about the relationship between simulation.stop and the end event, which are unrelated!) Lastly, simplify the recalculation of the current iteration when changing the alpha decay rate constant.
- Loading branch information