-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIsolette_Data_Model.sysml
101 lines (75 loc) · 2.21 KB
/
Isolette_Data_Model.sysml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Isolette_Data_Model.sysml
package Isolette_Data_Model {
private import AADL::*;
private import Base_Types::*;
private import ScalarValues::*;
part def PhysicalTemp :> Data {
part degrees : Float_32;
}
part def TempWstatus :> Data {
part degrees : Float_32;
attribute status : ValueStatus;
}
part def Temp :> Data {
part degrees : Float_32;
}
enum def On_Off {
enum Onn;
enum Off;
}
part def Failure_Flag :> Data {
part flag : Base_Types::Boolean;
}
enum def ValueStatus {
enum Valid;
enum Invalid;
}
// Regulator and Monitor Status
enum def Status {
enum Init_Status;
enum On_Status;
enum Failed_Status;
}
// Regulator Mode
enum def Regulator_Mode {
enum Init_Regulator_Mode;
enum Normal_Regulator_Mode;
enum Failed_Regulator_Mode;
}
// Monitor Mode
enum def Monitor_Mode {
enum Init_Monitor_Mode;
enum Normal_Monitor_Mode;
enum Failed_Monitor_Mode;
}
//Table A-3 Thermostat Monitored Variables for Temperature Sensor
// current temperature : TempWstatus
//Table A-4 Thermostat Controlled Variables for Heat Source
// heat control : On_Off
//Table A-5
// lower desired temperature : TempWstatus
// upper desired temperature : TempWstatus
// lower alarm temperature : TempWstatus
// upper alarm temperature : TempWstatus
//range of Monitored Temperature
// data Measured_Temperature_Range
// properties
// Data_Model::Base_Type => (classifier(BLESS_Types::Fixed_Point));
// Data_Model::Real_Range => 68.0 .. 105.0;
// Data_Model::Measurement_Unit => "Fahrenheit";
// BLESS::Typed => "real 68.0 .. 105.0 units Fahrenheit";
// end Measured_Temperature_Range;
//Valid/Invalid enumerated type
//Current Temperature "t" is temp, "status" is valid/invalid flag
// data Current_Temperature
// properties
// Data_Model::Data_Representation => Struct;
// Data_Model::Element_Names => ("t","status");
// Data_Model::Base_Type => (classifier (Measured_Temperature_Range),
// classifier (Valid_Flag));
// BLESS::Typed => "record (t:measured_temperature_range; status:valid_flag;)";
// end Current_Temperature;
//Table A-4. Thermostat Controlled Variables for Heat Source
//heat control and alarm value
//Table A-5
}