Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: eb32f18a39d24634f210d9191a6f864d92d519c8 (plain) (blame)
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
55
RoomModel Example_1 {

	ProtocolClass MyProtocol {
		incoming {
			Message in1 ()
			Message in2 ()
		}
		outgoing {
			Message out1 ()
		}
	}

	LogicalSystem SystemMain {
		SubSystemRef subsystem : SubSystemMain
	}

	SubSystemClass SubSystemMain {
		ActorRef application : App_SubSystemMain
	}

	// automatically inserted App_SubSystemMain
	ActorClass App_SubSystemMain {
		Structure {
			ActorRef actor : MyActor
		}
	}

	ActorClass MyActor {
		Interface {
			Port p2 : MyProtocol
		}
		Structure {
			conjugated Port p1 : MyProtocol
			ActorRef sub : SubActor
			Binding p1 and sub.p1
			Binding p2 and sub.p2
		}
		Behavior {
		}
	}

	ActorClass SubActor {
		Interface {
			Port p1 : MyProtocol
			Port p2 : MyProtocol
		}
		Structure {
			external Port p1
			external Port p2
		}
		Behavior {
		}
	}

}

Back to the top