-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
521 additions
and
457 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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,13 @@ | ||
package Behaviors { | ||
behavior A { | ||
in x; | ||
out y = b.y1; | ||
composite step b : B { | ||
in x1 = A::x; | ||
} | ||
} | ||
behavior B specializes A { | ||
in x1; | ||
out y1; | ||
} | ||
} |
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
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
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
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
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
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
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
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
124 changes: 62 additions & 62 deletions
124
sysml.library/Kernel Libraries/Kernel Semantic Library/Links.kerml
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 |
---|---|---|
@@ -1,67 +1,67 @@ | ||
standard library package Links { | ||
doc | ||
/* | ||
* This package defines associations and features that are related to the typing of links. | ||
*/ | ||
doc | ||
/* | ||
* This package defines associations and features that are related to the typing of links. | ||
*/ | ||
|
||
private import Base::Anything; | ||
private import Base::things; | ||
abstract assoc Link specializes Anything { | ||
doc | ||
/* | ||
* Link is the most general association between two or more things. | ||
*/ | ||
private import Base::Anything; | ||
private import Base::things; | ||
abstract assoc Link specializes Anything { | ||
doc | ||
/* | ||
* Link is the most general association between two or more things. | ||
*/ | ||
|
||
readonly feature participant: Anything[2..*] nonunique ordered; | ||
} | ||
|
||
assoc all BinaryLink specializes Link { | ||
doc | ||
/* | ||
* BinaryLink is the most general binary association between exactly two things, | ||
* nominally directed from source to target. | ||
*/ | ||
|
||
feature participant: Anything[2] nonunique ordered redefines Link::participant; | ||
|
||
readonly end feature source: Anything[0..*] subsets participant; | ||
readonly end feature target: Anything[0..*] subsets participant; | ||
} | ||
|
||
assoc all SelfLink specializes BinaryLink { | ||
doc | ||
/* | ||
* SelfLink is a binary association in which the things at the two ends are asserted | ||
* to be the same. | ||
*/ | ||
|
||
end feature thisThing: Anything[1] redefines source subsets sameThing, sameThing.self; | ||
end feature sameThing: Anything[1] redefines target subsets thisThing; | ||
} | ||
|
||
abstract feature links: Link[0..*] nonunique subsets things { | ||
doc | ||
/* | ||
* links is the most general feature of links between individuals. | ||
*/ | ||
} | ||
|
||
abstract feature binaryLinks: BinaryLink[0..*] nonunique subsets links { | ||
doc | ||
/* | ||
* binaryLinks is a specialization of links restricted to type BinaryLink. | ||
*/ | ||
} | ||
|
||
abstract feature selfLinks: SelfLink[0..*] nonunique subsets binaryLinks { | ||
doc | ||
/* | ||
* selfLinks is a specialization of binaryLinks restricted to type SelfLink. | ||
*/ | ||
readonly feature participant: Anything[2..*] nonunique ordered; | ||
} | ||
|
||
assoc all BinaryLink specializes Link { | ||
doc | ||
/* | ||
* BinaryLink is the most general binary association between exactly two things, | ||
* nominally directed from source to target. | ||
*/ | ||
|
||
feature participant: Anything[2] nonunique ordered redefines Link::participant; | ||
|
||
readonly end feature source: Anything[0..*] nonunique subsets participant; | ||
readonly end feature target: Anything[0..*] nonunique subsets participant; | ||
} | ||
|
||
assoc all SelfLink specializes BinaryLink { | ||
doc | ||
/* | ||
* SelfLink is a binary association in which the things at the two ends are asserted | ||
* to be the same. | ||
*/ | ||
|
||
end feature thisThing: Anything[1] redefines source subsets sameThing, sameThing.self; | ||
end feature sameThing: Anything[1] redefines target subsets thisThing; | ||
} | ||
|
||
abstract feature links: Link[0..*] nonunique subsets things { | ||
doc | ||
/* | ||
* links is the most general feature of links between individuals. | ||
*/ | ||
} | ||
|
||
abstract feature binaryLinks: BinaryLink[0..*] nonunique subsets links { | ||
doc | ||
/* | ||
* binaryLinks is a specialization of links restricted to type BinaryLink. | ||
*/ | ||
} | ||
|
||
abstract feature selfLinks: SelfLink[0..*] nonunique subsets binaryLinks { | ||
doc | ||
/* | ||
* selfLinks is a specialization of binaryLinks restricted to type SelfLink. | ||
*/ | ||
|
||
end feature thisThing: Anything[1] redefines SelfLink::thisThing, binaryLinks::source; | ||
end feature sameThing: Anything[1] redefines SelfLink::sameThing, binaryLinks::target; | ||
} | ||
|
||
end feature thisThing: Anything[1] redefines SelfLink::thisThing, binaryLinks::source; | ||
end feature sameThing: Anything[1] redefines SelfLink::sameThing, binaryLinks::target; | ||
} | ||
|
||
} |
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
Oops, something went wrong.