|
@@ -2,7 +2,7 @@ import models/SimpleClassDiagrams as SCD
|
|
|
include "primitives.alh"
|
|
|
|
|
|
SCD CausalBlockDiagrams_Runtime{
|
|
|
- Class Float {
|
|
|
+ AttributeValue Float {
|
|
|
$
|
|
|
if (bool_not(is_physical_float(self))):
|
|
|
return "Float has no float value"!
|
|
@@ -11,7 +11,7 @@ SCD CausalBlockDiagrams_Runtime{
|
|
|
$
|
|
|
}
|
|
|
|
|
|
- Class String {
|
|
|
+ AttributeValue String {
|
|
|
$
|
|
|
if (bool_not(is_physical_string(self))):
|
|
|
return "String has no string value"!
|
|
@@ -21,30 +21,18 @@ SCD CausalBlockDiagrams_Runtime{
|
|
|
}
|
|
|
|
|
|
Class Block{
|
|
|
- signal : Float {
|
|
|
- target_lower_cardinality = 1
|
|
|
- target_upper_cardinality = 1
|
|
|
- }
|
|
|
+ signal : Float
|
|
|
}
|
|
|
Class ICBlock{
|
|
|
- last_in : Float {
|
|
|
- target_lower_cardinality = 0
|
|
|
- target_upper_cardinality = 1
|
|
|
- }
|
|
|
+ last_in : Float
|
|
|
}
|
|
|
|
|
|
Class ConstantBlock{
|
|
|
- value : Float {
|
|
|
- target_lower_cardinality = 1
|
|
|
- target_upper_cardinality = 1
|
|
|
- }
|
|
|
+ value : Float
|
|
|
}
|
|
|
|
|
|
Class ProbeBlock{
|
|
|
- name : String {
|
|
|
- target_lower_cardinality = 1
|
|
|
- target_upper_cardinality = 1
|
|
|
- }
|
|
|
+ name : String
|
|
|
}
|
|
|
|
|
|
Class AdditionBlock{}
|
|
@@ -53,10 +41,7 @@ SCD CausalBlockDiagrams_Runtime{
|
|
|
Class InverseBlock{}
|
|
|
Class DelayBlock{}
|
|
|
Class IntegratorBlock{
|
|
|
- last_out : Float {
|
|
|
- target_lower_cardinality = 0
|
|
|
- target_upper_cardinality = 1
|
|
|
- }
|
|
|
+ last_out? : Float
|
|
|
}
|
|
|
|
|
|
Class DerivatorBlock{}
|
|
@@ -64,15 +49,8 @@ SCD CausalBlockDiagrams_Runtime{
|
|
|
lower_cardinality = 1
|
|
|
upper_cardinality = 1
|
|
|
|
|
|
- start_time : Float {
|
|
|
- target_lower_cardinality = 1
|
|
|
- target_upper_cardinality = 1
|
|
|
- }
|
|
|
-
|
|
|
- current_time : Float {
|
|
|
- target_lower_cardinality = 1
|
|
|
- target_upper_cardinality = 1
|
|
|
- }
|
|
|
+ start_time : Float
|
|
|
+ current_time : Float
|
|
|
}
|
|
|
|
|
|
Association Link(Block, Block){
|