-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndroidAction.mdepth
52 lines (42 loc) · 1.2 KB
/
AndroidAction.mdepth
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
load "Component"
load "ServerProperty"
load "Data"
Model AndroidAction imports Component, ServerProperty, Data {
abstract Node Action {
ctype : String{id};
condition : Action;
}
// e.g. use the value of a text field to call the action method of a component
Node ExtractLayoutAction : Action {
source : Component@0;
name : String;
}
// assign the property of a component
Node AssignPropertyAction : Action {
variable : Data;
}
// Specify the target activity
Node ChangeActivityAction : Action {
oldActivity : String;
newActivity : String;
data : Data[*];
}
Node EndActivityAction : Action {
notifyServer : boolean;
}
// Call the action method of a component.
// Might save a value if it's a sensor (i.e. geo)
// Or execute a real action if it's an actuator (i.e. send an SMS)
Node CallComponentAction : Action {
// properties needed to call the action method of the component
properties : Data[*];
}
// Use the result of a component from the properties hashmap
Node UseComponentResultAction : Action {
// Change this to an ENUM, e.g. to show a Toast message
action : String;
}
Node CheckServerProperty : Action {
property : ServerProperty[1];
}
}