2018-05-15 14:50:21 +00:00
|
|
|
/* @flow */
|
2018-05-23 16:03:26 +00:00
|
|
|
import type {
|
|
|
|
ResetSimulationAction,
|
2018-06-18 16:03:52 +00:00
|
|
|
LoadPreviousSimulationAction,
|
|
|
|
DeletePreviousSimulationAction
|
2018-05-23 16:03:26 +00:00
|
|
|
} from './types/Actions'
|
2018-05-15 14:50:21 +00:00
|
|
|
|
|
|
|
export function resetSimulation(): ResetSimulationAction {
|
|
|
|
return {
|
|
|
|
type: 'RESET_SIMULATION'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-18 16:03:52 +00:00
|
|
|
export function deletePreviousSimulation(): DeletePreviousSimulationAction {
|
|
|
|
return {
|
|
|
|
type: 'DELETE_PREVIOUS_SIMULATION'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-15 14:50:21 +00:00
|
|
|
// $FlowFixMe
|
2018-06-13 08:26:27 +00:00
|
|
|
export function setExample(name, situation, dottedName) {
|
|
|
|
return { type: 'SET_EXAMPLE', name, situation, dottedName }
|
2018-02-22 16:23:47 +00:00
|
|
|
}
|
|
|
|
|
2018-05-23 16:03:26 +00:00
|
|
|
export function loadPreviousSimulation(): LoadPreviousSimulationAction {
|
|
|
|
return {
|
|
|
|
type: 'LOAD_PREVIOUS_SIMULATION'
|
|
|
|
}
|
|
|
|
}
|
2017-02-08 16:50:22 +00:00
|
|
|
|
2017-02-09 17:15:25 +00:00
|
|
|
export const EXPLAIN_VARIABLE = 'EXPLAIN_VARIABLE'
|