Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Preloaded Examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Monterey Phoenix
MP Model Collection
Preloaded Examples
Commits
d68ea28c
Commit
d68ea28c
authored
3 years ago
by
Giammarco, Kristin M
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
228931e6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/Language_concepts/Event_Sharing_in_Composite_Events.mp
+74
-0
74 additions, 0 deletions
...ls/Language_concepts/Event_Sharing_in_Composite_Events.mp
with
74 additions
and
0 deletions
models/Language_concepts/Event_Sharing_in_Composite_Events.mp
0 → 100644
+
74
−
0
View file @
d68ea28c
/*┬────────────────────────────────────────────────────────┐
│*│ ┌─[ Title and Authors ]──────────────────────────────┐ │
│*│ │ Event Sharing in Composite Events │ │
│*│ │ Created by Kristin Giammarco and Mike Collins │ │
│*│ │ 2021-11-11 │ │
│*│ └────────────────────────────────────────────────────┘ │
│*│ │
│*│ ┌─[ Purpose ]────────────────────────────────────────┐ │
│*│ │ To illustrate how to share events within composite │ │
│*│ │ events. │ │
│*│ └────────────────────────────────────────────────────┘ │
│*│ │
│*│ ┌─[ Description ]────────────────────────────────────┐ │
│*│ │ This model shows the use of COORDINATE statements │ │
│*│ │ to perform event sharing inside of composite │ │
│*│ │ events. This operation uses nested COORDINATE │ │
│*│ │ statements to navigate the event hierarchy. │ │
│*│ └────────────────────────────────────────────────────┘ │
│*│ │
│*│ ┌─[ References ]─────────────────────────────────────┐ │
│*│ │ "Example 3: Data Flow" from Auguston, M. "Monterey │ │
│*│ │ Phoenix System and Software Architecture and │ │
│*│ │ Workflow Modeling Language Manual" (Version 4). │ │
│*│ │ 2020. Available online: │ │
│*│ │ https://wiki.nps.edu/display/MP/Documentation │ │
│*│ │ │ │
│*│ │ Example02_DataFlow_EventSharing. Available online:│ │
│*│ │ https://gitlab.nps.edu/monterey-phoenix/mp-model-collection/preloaded-examples/-/tree/master/models
│*│ └────────────────────────────────────────────────────┘ │
│*│ │
│*│ ┌─[ Search Terms ]───────────────────────────────────┐ │
│*│ │ behavior, data flow; event sharing │ │
│*│ └────────────────────────────────────────────────────┘ │
│*│ │
│*│ ┌─[ Instructions ]───────────────────────────────────┐ │
│*│ │ Run for Scopes 1 and up. │ │
│*│ ├─[ Run Statistics ]─────────────────────────────────┤ │
│*│ │ Scope 1: 3 traces in less than 1 sec. │ │
│*│ │ Scope 2: 28 traces in less than 1 sec. │ │
│*│ │ Scope 3: 165 traces in less than 1 sec. │ │
│*│ └────────────────────────────────────────────────────┘ │
└*┴───────────────────────────────────────────────────────*/
SCHEMA Event_Sharing_in_Composite_Events
ROOT System: { Writer, File, Reader };
Writer: (* ( working | writing ) *);
/* writing events should precede reading */
File: (+ writing +) (* reading *);
/* Share writing events within Writer and File
composite events*/
COORDINATE $a: Writer FROM System,
$b: File FROM System
DO COORDINATE $c: writing FROM $a,
$d: writing FROM $b
DO SHARE $c $d; OD;
OD;
Reader: (* ( reading | working ) *);
/* Share reading events within Reader and File
composite events*/
COORDINATE $a: Reader FROM System,
$b: File FROM System
DO COORDINATE $c: reading FROM $a,
$d: reading FROM $b
DO SHARE $c $d; OD;
OD;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment