JavaScriptShell

Below is a browsable image of the model.

  • For an executable version,
  • To view or save the MoML file for this model, click here.
JavaScriptShellmodel <h2>SDF Director</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>iterations</td><td>UNBOUNDED</td><td>0</td></tr><tr><td>vectorizationFactor</td><td>1</td><td>1</td></tr><tr><td>allowDisconnectedGraphs</td><td>false</td><td>false</td></tr><tr><td>allowRateChanges</td><td>false</td><td>false</td></tr><tr><td>constrainBufferSizes</td><td>true</td><td>true</td></tr><tr><td>period</td><td>0.0</td><td>0.0</td></tr><tr><td>synchronizeToRealTime</td><td>false</td><td>false</td></tr><tr><td>startTime</td><td>&nbsp;</td><td>null</td></tr><tr><td>stopTime</td><td>&nbsp;</td><td>null</td></tr></table> <h2>EscapeQuotes</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>pattern</td><td>\\'</td><td>\\'</td></tr><tr><td>replacement</td><td>&quot;</td><td>&quot;</td></tr><tr><td>stringToEdit</td><td>bar(&quot;hello&quot;)</td><td>bar(&quot;hello&quot;)</td></tr><tr><td>replaceAll</td><td>true</td><td>true</td></tr><tr><td>regularExpression</td><td>false</td><td>false</td></tr></table> <h2>ModalModel</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>stateDependentCausality</td><td>false</td><td>false</td></tr><tr><td>directorClass</td><td>ptolemy.domains.modal.kernel.FSMDirector</td><td>ptolemy.domains.modal.kernel.FSMDirector</td></tr></table> <h2>StringReplace</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>pattern</td><td>__xxxx__</td><td>__xxxx__</td></tr><tr><td>replacement</td><td>bar(&quot;hello&quot;)</td><td>bar(&quot;hello&quot;)</td></tr><tr><td>stringToEdit</td><td>function fire() {\\n    var result = eval.call(this, \\'__xxxx__\\');\\n    if (result == null) {\\n      result = &quot;null&quot;;\\n    }\\n    send(result, output, 0);\\n}</td><td>function fire() {\\n    var result = eval.call(this, \\'__xxxx__\\');\\n    if (result == null) {\\n      result = &quot;null&quot;;\\n    }\\n    send(result, output, 0);\\n}</td></tr><tr><td>replaceAll</td><td>true</td><td>true</td></tr><tr><td>regularExpression</td><td>false</td><td>false</td></tr></table> <h2>SampleDelay</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>initialOutputs</td><td>{&quot;JavaScript Shell&quot;}</td><td>{&quot;JavaScript Shell&quot;}</td></tr><tr><td>displayWidth</td><td>20</td><td>20</td></tr><tr><td>_flipPortsHorizontal</td><td>true</td><td>true</td></tr></table> <h2>InteractiveShell</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>prompt</td><td>&gt;&gt; </td><td>&gt;&gt; </td></tr></table>