Recent Changes - Search:

Information Foreword What is EJS? Demos/Examples Credits Links Webcasts Installation Download & Install EJS Workspaces Running EJS Conditions of Use Documentation EJS Console EJS Interface Description Panel Model Panel View Panel Deployment Elements Reference User Feedback English | Spanish | View Edit History Print PDF ## Menu of a simulation created with EJS Each simulation has a popup menu with generic utilities. This popup menu appears when the user right-clicks on a (2D or 3D) drawing or (2D) plotting panel. The popup menu for a 2D drawing panel. The State Input/Output submenu is also shown. The menu contains a first set of options particular of the type of drawing panel, a second set of common options for the simulation, and a third set of higher-level tasks. ##### Common options: Capture the screen State Input/Output Save State. Saves the current state (the value of the variables) of the simulation to disk. The default saving extension is “.xml”, which produces an XML data file. If any other extension is selected (such as “.dat”), the file is saved in binary form. Read State. Reads a state previously saved with the option “Save State”. This state becomes the default state for the simulation until a “Default Reset State” (see below) is invoked. That is, a call to _reset() will first reset the simulation to the author defined default state and then read this file. (After this, the initialization pages are called and then constraints, etc…). It is important that the input file was created with the same version of the simulation which tries to read it. Otherwise, unexpected results may occur. Default Reset State. This clears any default state file the user may have read before and rests the simulation to the author defined reset state. GUI Options ##### Higher-level tasks: Show Description Open Ejs model OSP Message Log… ##### Additional options when running as a JAR file: If you have package a simulation as a self-executable JAR file for distribution. Then, running the simulation (running the JAR file) and right-clicking on a drawing or plottin panel shows the same menu BUT with an additional option (see figure). Create HTML file. Creates a simple HTML file that contains HTML code (basically, an applet tag) to run the simulation as an applet. This HTML does not contain information from the description pages of your simulation, but is intended to let you publish an existing simulation in JAR form in a web page that you will edit yourself. To create a set of HTML pages that includes the description of your simulation, right-click on EJS’ package button and select Export web site with applets. The extended menu when running a simulation as a JAR file. The Create HTML file option is highlighted.

Edit - History - Print - Recent Changes - Search
Page last modified on April 29, 2009, at 12:11 AM