-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsmartcity.mm
More file actions
38 lines (30 loc) · 831 Bytes
/
smartcity.mm
File metadata and controls
38 lines (30 loc) · 831 Bytes
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
class smartcity.City {
att name: String
rel districts: smartcity.District
}
class smartcity.District {
att name: String
rel contact: smartcity.Contact with maxBound 1
rel sensors: smartcity.Sensor
rel checker: smartcity.SensorStateChecker with maxBound 1
}
class smartcity.Contact {
att name: String
att email: String
}
class smartcity.Sensor {
att name: String
att value: Double
}
enum smartcity.SensorState {
CORRECT, SUSPICIOUS
}
class smartcity.SensorStateChecker {
with inference "GaussianAnomalyDetection"
att alpha: Double
dependency temperatureSensor: smartcity.Sensor
dependency humiditySensor: smartcity.Sensor
input tempValue "@temperatureSensor | =value"
input humidityValue "@humiditySensor | =value"
output state: smartcity.SensorState
}