CarTracking

Below is a browsable image of the model.

  • For an executable version,
  • To view or save the MoML file for this model, click here.
CarTrackingmodel <h2>Continuous Director</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>startTime</td><td>&nbsp;</td><td>null</td></tr><tr><td>stopTime</td><td>100.0</td><td>100.0</td></tr><tr><td>synchronizeToRealTime</td><td>false</td><td>false</td></tr><tr><td>initStepSize</td><td>0.1</td><td>0.1</td></tr><tr><td>maxStepSize</td><td>1.0</td><td>1.0</td></tr><tr><td>maxIterations</td><td>20</td><td>20</td></tr><tr><td>errorTolerance</td><td>1e-4</td><td>1.0E-4</td></tr><tr><td>ODESolver</td><td>ExplicitRK23Solver</td><td>ExplicitRK23Solver</td></tr></table> <h2>NetworkModel</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.continuous.kernel.HybridModalDirector</td><td>ptolemy.domains.continuous.kernel.HybridModalDirector</td></tr></table> <h2>DriverSimulator</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>jitterAmplitude</td><td>30</td><td>30</td></tr><tr><td>jitterPeriod</td><td>50</td><td>50</td></tr><tr><td>nominalSpeed</td><td>55</td><td>55</td></tr><tr><td>Constraint</td><td>jitterPeriod &gt;= Time</td><td>jitterPeriod &gt;= Time</td></tr><tr><td>Constraint2</td><td>nominalSpeed &gt;= Velocity</td><td>nominalSpeed &gt;= Velocity</td></tr><tr><td>Constraint3</td><td>jitterAmplitude &gt;= Velocity</td><td>jitterAmplitude &gt;= Velocity</td></tr></table> <h2>FollowingCar</h2>Has no parameters. <h2>PeriodicSampler</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>samplePeriod</td><td>0.1</td><td>0.1</td></tr><tr><td>microstep</td><td>0</td><td>0</td></tr></table> <h2>RecordAssembler</h2>Has no parameters. <h2>CurrentTime</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>stopTime</td><td>Infinity</td><td>Infinity</td></tr><tr><td>stopTimeIsLocal</td><td>false</td><td>false</td></tr><tr><td>useLocalTime</td><td>true</td><td>true</td></tr></table> <h2>DiscreteClock</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>stopTime</td><td>Infinity</td><td>Infinity</td></tr><tr><td>stopTimeIsLocal</td><td>false</td><td>false</td></tr><tr><td>period</td><td>faultStopTime + 1.0</td><td>71.0</td></tr><tr><td>offsets</td><td>{faultStartTime, faultStopTime}</td><td>{50.0, 70.0}</td></tr><tr><td>values</td><td>{true, false}</td><td>{true, false}</td></tr><tr><td>numberOfCycles</td><td>1</td><td>1</td></tr></table> <h2>TimedPlotter</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>fillOnWrapup</td><td>true</td><td>true</td></tr><tr><td>automaticRescale</td><td>false</td><td>false</td></tr><tr><td>legend</td><td>Leading Car, Following Car</td><td>Leading Car, Following Car</td></tr><tr><td>startingDataset</td><td>0</td><td>0</td></tr><tr><td>disconnectGraphOnAbsentValue</td><td>false</td><td>false</td></tr><tr><td>useLocalTime</td><td>false</td><td>false</td></tr></table> <h2>Car Model</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>initialPosition</td><td>10.0</td><td>10.0</td></tr><tr><td>initialSpeed</td><td>0.0</td><td>0.0</td></tr><tr><td>timeConstant</td><td>10.0</td><td>10.0</td></tr><tr><td>Constraint</td><td>timeConstant &gt;= Time</td><td>timeConstant &gt;= Time</td></tr></table>