-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass.uml
39 lines (37 loc) · 836 Bytes
/
class.uml
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
@startuml
hide circle
class "<b>web</b>" as web <<interface>> {
<b>post</b>(url: String, parms: Parm[0..*]]): String
<b>get</b>(url: String, parms: Parm[0.*]): String
}
class "<b>Parm</b>" as Tparm <<dataType>> {
name: String
value: String
}
web ..> Tparm
class "<b>php</b>" as php <<interface>> {
<b>setup</b>(lamps: Lamp[1..*]): Boolean
<b>setPower</b>(lamps: Power[1..*]): Boolean
<b>getColor</b>(lamps: int[1..*]): Color[1..*]
}
class "<b>Lamp</b>" as Tlamp <<dataType>> {
id: int
color: char
port: int
range: int[1..2]
}
class "<b>Power</b>" as Tpower <<dataType>> {
id: int
percent: int
}
php ..> Tlamp
php ..> Tpower
class "<b>lamp</b>" as lamp {
-id: int
-color: char
-port: int
-range: int[1..2]
<b>setPower</b>(power: int): Boolean
<b>getColor</b>(): String
}
@enduml