Class myphysicslab.sims.springs.TerminalSpringApp

Provided By

Shows a simulation from the springs namespace by executing commands in Terminal. This makes it easy to create and modify an app without needing Closure Compiler, instead the author can just make a new HTML file which contains the Terminal script to create all the parts of the app. The end user can see how the app was created by looking at the Terminal output.

All the simulations in the namespace myphysicslab.sims.springs are included (assuming this is compiled with simple compile, because advanced compile will strip out all the simulations).

new TerminalSpringApp( elem_ids )

elem_ids{div_graph: string, form_terminal: string, graph_controls: string, images_dir: string, label_terminal: string, show_controls: string, show_graph: string, show_hide_form: string, show_terminal: string, sim_applet: string, sim_controls: string, term_input: string, term_output: string}

specifies the names of the HTML elementId's to look for in the HTML document; these elements are where the user interface of the simulation is created.

Instance Methods

Instance Properties