app/controllers/runs_controller.rb
# changing show time situation and/or simulation mode
changing show time situation and/or simulation mode
changing show time situation and / or simulation mode
def change_show_time
    session[:show_time_base]     = params[:show_time_base] ? time_from_date_params(params[:show_time_base]).to_s(:db) : nil
    session[:base_setting_time]  = session[:show_time_base] ? @real_time.to_s(:db) : nil
    session[:show_time_rate]     = params[:show_time_rate] ? params[:show_time_rate].to_i : 1  
    session[:show_time_mode]  = 
      session[:show_time_base].nil? ? 0 : ( session[:show_time_base] <= session[:base_setting_time]  ? -1 : 1 )
    session[:simulation_mode] = params[:simulation_mode] ? true : nil
    set_system_situation
  end
def change_show_time session [ :show_time_base ] = params [ :show_time_base ] ? time_from_date_params ( params [ :show_time_base ] ) . to_s ( :db ) : nil session [ :base_setting_time ] = session [ :show_time_base ] ? @real_time . to_s ( :db ) : nil session [ :show_time_rate ] = params [ :show_time_rate ] ? params [ :show_time_rate ] . to_i : 1 session [ :show_time_mode ] = session [ :show_time_base ] . nil? ? 0 : ( session [ :show_time_base ] <= session [ :base_setting_time ] ? - 1 : 1 ) session [ :simulation_mode ] = params [ :simulation_mode ] ? true : nil set_system_situation end
changing show time situation and/or simulation mode
changing show time situation and / or simulation mode
# redo setting system_situation under this artifact situation