-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndroidComponent.mdepth
35 lines (27 loc) · 960 Bytes
/
AndroidComponent.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
load "Component"
load "AndroidAction"
load "UIAction"
Model AndroidComponent@2 imports Component, AndroidAction, UIAction {
// Android component for semantics and extensibility
Node AComp : Component {
gencodetemplate@1 : String;
package@1 : String;
layoutcomponents@2 : Layout@0[*];
// Trigger can be another component (e.g. GeoComponent)
trigger : AComp@0;
// isTriggerOf defines the bi-directional connection with another component
// a component could be the trigger of another component or a layoutcomponent
isTriggerOf : AComp@0;
dependencies@1 : DependencyComponent[*];
// actions extend the action() method, so users can extend a component's functionality
actions : Action[*];
// uiactions are actions on a layoutcomponent
uiactions : UIAction[*];
}
Edge Trigger@(2)(AComp.trigger, AComp.isTriggerOf) {
actions : Action[*];
}
Node SComp : AComp {
childActivity : String;
}
}