25 lines
519 B
JavaScript
25 lines
519 B
JavaScript
/* @flow */
|
|
import type {
|
|
ResetSimulationAction,
|
|
LoadPreviousSimulationAction
|
|
} from './types/Actions'
|
|
|
|
export function resetSimulation(): ResetSimulationAction {
|
|
return {
|
|
type: 'RESET_SIMULATION'
|
|
}
|
|
}
|
|
|
|
// $FlowFixMe
|
|
export function setExample(name, situation, dottedName) {
|
|
return { type: 'SET_EXAMPLE', name, situation, dottedName }
|
|
}
|
|
|
|
export function loadPreviousSimulation(): LoadPreviousSimulationAction {
|
|
return {
|
|
type: 'LOAD_PREVIOUS_SIMULATION'
|
|
}
|
|
}
|
|
|
|
export const EXPLAIN_VARIABLE = 'EXPLAIN_VARIABLE'
|