If the filename ends with the suffix ".xml", the data is assumed to be a text file in XML form. This method reads the value of all the variables of the model from the file. Returns the in command-line arguments when the simulation is run from a shell window. Model Input/Output methods to save and read data Other disabled pages are not processed by EJS when generating the simulation. The method only has effect on pages of the Initialization, Evolution, and Fixed Relations sections of EJS, and also on ODE Event pages. If two pages share the same title, they are enabled/disabled together. The page is referred to using the header title as it appears in EJS. Void _setPageEnabled(String pageName, boolean enabled)Įnable/disable a page in run-time. If the simulation is running, the evolution pauses at the end of the current step. Fixed relations are evaluated after every evaluation of the evolution so that multiple data points are generated and collected if SPD is greater than one. Performs SPD evolution steps and refreshes the display (see the _tSPD() method). The default FPS parameter is displayed on the Evolution workpanel. Sets the number of frames per second (FPS) of the simulation to the given value. The delay time is the reciprocal of the frames per second (FPS) property. Sets the delay time in milliseconds between model's evolution steps. This method clears all data, sets global variables to the initial value in the table of variables, and sets all user interface elements to their default values. Resets the simulation to its initial state. If FPS is 10 and SPD is 5 the program will execute the evolution algorithm 50 times per second and will collect data at the end of every step but will only redraw the screen 10 times per second. The evolution proceeds at a rate determined by the frames per second (FPS) property and the step per display (SPD) property. Pauses the evolution at the end of the current evolution step. This method is often used to enable or disable elements of the view. It is the opposite of the _isPlaying() method.ĭetermines if the evolution is playing. This method is often used to re-initialize a simulation with user interface values because it does not reset global variables to the values in the table of variables.ĭetermines if the simulation is running in an applet (web browser) environment.ĭetermines whether the evolution of the simulation is not playing. Returns the EJSODE object for the given ODE page.Įxecutes the Initialization workpanel code without resetting model variables to their default value. Returns the current delay time in milliseconds. Model methods to control the execution of the simulation
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |