Skip to content

Commit 5f0b46c

Browse files
committed
SYSML2_-510 Made usages constant if they are time varying end features.
1 parent f09c0f2 commit 5f0b46c

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

org.omg.kerml.xtext/src/org/omg/kerml/xtext/validation/KerMLValidator.xtend

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,11 +745,6 @@ class KerMLValidator extends AbstractKerMLValidator {
745745
error(INVALID_SUBSETTING_CONSTANT_CONFORMANCE_MSG, sub, SysMLPackage.eINSTANCE.subsetting_SubsettedFeature, INVALID_SUBSETTING_CONSTANT_CONFORMANCE)
746746
}
747747

748-
// // validateSubsettingPortionConformance
749-
// if (subsettedFeature.isPortion && !subsettingFeature.isPortion) {
750-
// error(INVALID_SUBSETTING_PORTION_CONFORMANCE_MSG, sub, SysMLPackage.eINSTANCE.subsetting_SubsettedFeature, INVALID_SUBSETTING_PORTION_CONFORMANCE)
751-
// }
752-
753748
// validateSubsettingFeaturingTypes
754749
if (subsettingFeature !== null && subsettedFeature !== null) {
755750
val subsettedFeaturingTypes = subsettedFeature.featuringType

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/UsageImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,11 @@ public boolean isAbstract() {
10551055
public boolean isComposite() {
10561056
return UsageUtil.isComposite(this, isComposite);
10571057
}
1058+
1059+
@Override
1060+
public boolean isConstant() {
1061+
return isConstant || isEnd() && isMayTimeVary();
1062+
}
10581063

10591064
//
10601065

sysml.library/Domain Libraries/Cause and Effect/CausationConnections.sysml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,17 @@ standard library package CausationConnections {
3030
*/
3131

3232
abstract constant ref occurrence causes[1..*] :>> causes :> participant {
33-
doc /* The causing occurrences. */
33+
doc
34+
/*
35+
* The causing occurrences. (Constant for each Multicausation instance.)
36+
*/
3437
}
3538
abstract constant ref occurrence effects[1..*] :>> effects :> participant {
36-
doc /* The effect occurrences caused by the causing occurrences. */
39+
doc
40+
/*
41+
* The effect occurrences caused by the causing occurrences.
42+
* (Constant for each Multicausation instance.)
43+
*/
3744
}
3845

3946
private assert constraint disjointCauseEffect {

0 commit comments

Comments
 (0)