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