(back to index) (edit this in the feed-back web form)
- Title
- add movie controls to simulation preview
- Type
- Feature_request
- Raised by
- NN
- Date opened
- Monday, 24 November 2008
- Description
- Is it possible to add simulation scroll control to move time back and forth like a movie clip controller to allow users to examine replay the simulation as one of the standard default buttons like play stop initialise reset etc
- Importance
- 1
- Proposed solution
- EJS has no built-in support for this sort of ‘memory’. The reason is that you need to remember the information of ALL variables during the past states of the simulation in order to be able to go back in time, as you propose. A generic implementation of this would eat computer memory.
However, you can create a simulation that does what you want. You will need to define an array (or a java.util.ArrayList object, or something similar) that keeps a memory of past states and then you can program the simulation to go back in time by reading this memeory and setting the value of the variables to the stored values.
Paco
- Urgency
- 1
- Status
- Open
- Resolution
-
(back)
« 00019 · Edit Form · 00021 »