Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { Action } from '@ngrx/store';
import { Criterion } from './model';
export const CHANGE_STEP = 'Change Search Step';
export const SELECT_DATASET = 'Select Dataset';
export const UPDATE_CRITERIA_LIST = 'Update Criteria List';
export const ADD_CRITERION = 'Add Criterion';
export const DELETE_CRITERION = 'Delete Criterion';
export const UPDATE_OUTPUT_LIST = 'Update Output List';
export class ChangeStepAction implements Action {
type = CHANGE_STEP;
constructor(public payload: string) { }
}
export class SelectDatasetAction implements Action {
type = SELECT_DATASET;
constructor(public payload: string) { }
}
export class UpdateCriteriaListAction implements Action {
type = UPDATE_CRITERIA_LIST;
constructor(public payload: Criterion[]) { }
}
export class AddCriterionAction implements Action {
type = ADD_CRITERION;
constructor(public payload: Criterion) { }
}
export class DeleteCriterionAction implements Action {
type = DELETE_CRITERION;
constructor(public payload: number) { }
}
export class UpdateOutputListAction implements Action {
type = UPDATE_OUTPUT_LIST;
constructor(public payload: number[]) { }
}
export type Actions
= ChangeStepAction
| SelectDatasetAction
| UpdateCriteriaListAction
| AddCriterionAction
| DeleteCriterionAction
| UpdateOutputListAction;