Skip to content

Commit 7d49a5a

Browse files
committed
ST6RI-832 Updated SysML Xpect test library.
1 parent fbaa07e commit 7d49a5a

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

org.omg.sysml.xpect.tests/library.domain/Analysis/TradeStudies.sysml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ standard library package TradeStudies {
5858
*/
5959
}
6060

61-
in calc fn : EvaluationFunction {
61+
in calc eval : EvaluationFunction {
6262
doc
6363
/*
6464
* The EvaluationFunction to be used in evaluating the given alternatives.
@@ -74,7 +74,7 @@ standard library package TradeStudies {
7474
*/
7575
}
7676

77-
require constraint { fn(selectedAlternative) == best }
77+
require constraint { eval(selectedAlternative) == best }
7878
}
7979

8080
requirement def MinimizeObjective :> TradeStudyObjective {
@@ -87,7 +87,7 @@ standard library package TradeStudies {
8787

8888
subject :>> selectedAlternative;
8989
in ref :>> alternatives;
90-
in calc :>>fn;
90+
in calc :>> eval;
9191

9292
out attribute :>> best = alternatives->minimize {
9393
doc
@@ -109,7 +109,7 @@ standard library package TradeStudies {
109109

110110
subject :>> selectedAlternative;
111111
in ref :>> alternatives;
112-
in calc :>>fn;
112+
in calc :>> eval;
113113

114114
out attribute :>> best = alternatives->maximize {
115115
doc
@@ -164,7 +164,7 @@ standard library package TradeStudies {
164164

165165
subject :>> selectedAlternative;
166166
in ref :>> alternatives = studyAlternatives;
167-
in calc :>> fn = evaluationFunction;
167+
in calc :>> eval = evaluationFunction;
168168
}
169169

170170
return selectedAlternative : Anything = studyAlternatives->selectOne {in ref a {

org.omg.sysml.xpect.tests/library.domain/Quantities and Units/Time.sysml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ standard library package Time {
195195
* 1969-07-20T20:17:00Z (UTC date and time with second precision)
196196
* 1969-07-20T15:17:00-05:00 (local date and time with second precision for a timezone 5 hour behind UTC)
197197
* 1969-07-20T22:17:00+02:00 (local date and time with second precision for a timezone 2 hour ahead of UTC)
198-
*
199-
* TODO: Add constraint to verify ISO 8691 extended string encoding.
200198
*/
201199
}
202200

@@ -222,9 +220,6 @@ standard library package Time {
222220
/*
223221
* Representation of an ISO 8601 date and time with explicit date and time component attributes
224222
*
225-
* TO DO: Specify restrictions for attributes month (1 to 12), day (1 to 31), hour (0 to 23), minute (0 to 59), second (0 to 60),
226-
* microsecond (0 to 999999), hourOffset (-12 to +12), minuteOffset (-59 to +59)
227-
*
228223
* The total time offset is equal to the summation of hourOffset and minuteOffset.
229224
*/
230225

0 commit comments

Comments
 (0)