 
   onSimulationEnded: ->
     @settings.modelIsRunning = false
-    @settings.modelReadyToRun = true
     @notifyChange()
 
   _startRecording: ->


  onExpandSimulationPanel: ->
    @settings.simulationPanelExpanded = true
    @settings.modelReadyToRun = true
    @settings.modelIsRunning = true
    SimulationActions.resetSimulation.trigger()
    @notifyChange()

  onCollapseSimulationPanel: ->
    @settings.simulationPanelExpanded = false
    @settings.modelReadyToRun = false
    @settings.modelIsRunning = false
    @notifyChange()

  onGraphChanged: (data)->

      stepUnitsName: unitName
      timeUnitOptions: options
      capNodeValues: false
      modelIsRunning: false
      modelIsRunnable: @_checkModelIsRunnable()
      graphHasCollector: @_checkForCollectors()
      isRecording: false            # sending data to codap?
