Skip to content

Commit 225c086

Browse files
committed
Added isComposite modeled semantics
1 parent 5ff37e2 commit 225c086

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

sysml.library/Kernel Libraries/Kernel Semantic Library/Occurrences.kerml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ standard library package Occurrences {
7474
feature redefines incomingTransferSort default (that as Occurrence).incomingTransferSort;
7575
}
7676

77+
/* Occurrences may be suboccurrences of no more than one other occurrence. */
78+
feature superoccurrence: Occurrence[0..1] subsets occurrences inverse of suboccurrences;
79+
7780
feature withoutOccurrences: Occurrence[0..*] unions successors, predecessors, outsideOfOccurrences
7881
inverse of withoutOccurrences {
7982
doc
@@ -353,6 +356,11 @@ standard library package Occurrences {
353356
/*
354357
* The snapshot at the end of the occurrence in time.
355358
*/
359+
360+
/* suboccurrences at the end of an Occurrence must also end. */
361+
feature subendshot : Occurrence [0..*] chains self.suboccurrences.endShot {
362+
feature superendshot : Occurrence [1] subsets that;
363+
subset superendshot subsets self.timeCoincidentOccurrences; }
356364
}
357365

358366
connector :HappensJustBefore
@@ -416,7 +424,7 @@ standard library package Occurrences {
416424
feature union: Occurrence[0..1];
417425

418426
connector :Within
419-
from [0..*] smallerOccurrence references elements
427+
from [0..*] smallerOccurrence references elements
420428
to [1] largerOccurrence references union;
421429
connector :Within
422430
from [0..*] smallerOccurrence references union.spaceTimeEnclosedPoints

0 commit comments

Comments
 (0)