Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: eebc7b8e275ce2b8a969dea61f6b13beb8f1e311 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
RoomModel ActorNotation {

	ActorClass ActorClassSkeleton {
		Interface { }
		Structure { }
		Behavior { }
	}

	ActorClass ActorClass1 {
		Structure {
			ActorRef ActorReference: ActorClass2
		}
	}

	ActorClass ActorClass2 { }

	DataClass DataClass1 {
		Attribute a1: int16
	}

	ProtocolClass ProtocolClass1 {
		incoming {
			Message m1(data: int32)
			Message m2()
		}
		outgoing {
			Message m3(data: DataClass1)
			Message m4()
		}
	}

	// 040-ActorClassAttributes.png
	ActorClass ActorClass3 {
		Structure {
			Attribute attribute1: int32

			// attribute of PrimitveType
			Attribute attribute2: DataClass1

			// attribute of DataClass

		}
	}

	// 040-ActorClassOperations.png
	
	ActorClass ActorClass4 {
		Behavior {
			// no arguments, no return value
			Operation operation1(): void {
				"UserCodeLine1"
			}
			// argument of PrimitiveType, return value of of PrimitiveType
			Operation operation2(Param1: int32, Param2: float64): uint16 {
				"UserCodeLine1"
			}
			// arguments and return value by value
			Operation operation3(Param1: int32, Param2: DataClass1): DataClass1 {
				"UserCodeLine1"
			}
			// arguments and return value by reference, except for PrimitiveTypes
			Operation operation4(Param1: int32, Param2: DataClass1 ref): DataClass1 ref {
				"UserCodeLine1"
			}
		}
	}


} 

Back to the top