-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modelica test model for increasing2 ETL operator
- Loading branch information
1 parent
3c4a020
commit ff07f12
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
resources/modelica_libraries/CRML_test/ETL/Increasing2_no_ext/Increasing2_no_ext.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
within CRML_test.ETL.Increasing2_no_ext; | ||
model Increasing2_no_ext | ||
Integer x1 = 3; | ||
Integer x2 = 7; | ||
Integer x3 = 7; | ||
|
||
CRML.ETL.Types.Boolean4 b_increasing2_on_strictly_greater_1; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_strictly_greater_2; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_greater_or_equal_1; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_greater_or_equal_2; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_strictly_less_1; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_strictly_less_2; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_less_or_equal_1; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_less_or_equal_2; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_equal_1; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_equal_2; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_different_1; | ||
CRML.ETL.Types.Boolean4 b_increasing2_on_different_2; | ||
|
||
equation | ||
b_increasing2_on_strictly_greater_1 = CRML.ETL.Types.cvBooleanToBoolean4(x1 > x2); | ||
b_increasing2_on_strictly_greater_2 = CRML.ETL.Types.cvBooleanToBoolean4(x2 > x1); | ||
b_increasing2_on_greater_or_equal_1 = CRML.ETL.Types.cvBooleanToBoolean4(x1 >= x2); | ||
b_increasing2_on_greater_or_equal_2 = CRML.ETL.Types.cvBooleanToBoolean4(x2 >= x1); | ||
b_increasing2_on_strictly_less_1 = CRML.ETL.Types.cvBooleanToBoolean4(x1 >= x2); | ||
b_increasing2_on_strictly_less_2 = CRML.ETL.Types.cvBooleanToBoolean4(x2 >= x1); | ||
b_increasing2_on_less_or_equal_1 = CRML.ETL.Types.cvBooleanToBoolean4(x1 > x2); | ||
b_increasing2_on_less_or_equal_2 = CRML.ETL.Types.cvBooleanToBoolean4(x2 > x1); | ||
b_increasing2_on_equal_1 = CRML.ETL.Types.cvBooleanToBoolean4(x1 == x2); | ||
b_increasing2_on_equal_2 = CRML.ETL.Types.cvBooleanToBoolean4(x2 == x3); | ||
b_increasing2_on_different_1 = CRML.ETL.Types.cvBooleanToBoolean4(x1 <> x2); | ||
b_increasing2_on_different_2 = CRML.ETL.Types.cvBooleanToBoolean4(x2 <> x3); | ||
|
||
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram( | ||
coordinateSystem(preserveAspectRatio=false))); | ||
end Increasing2_no_ext; |
3 changes: 3 additions & 0 deletions
3
resources/modelica_libraries/CRML_test/ETL/Increasing2_no_ext/package.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
within CRML_test.ETL; | ||
package Increasing2_no_ext | ||
end Increasing2_no_ext; |
1 change: 1 addition & 0 deletions
1
resources/modelica_libraries/CRML_test/ETL/Increasing2_no_ext/package.order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Increasing2_no_ext |