Skip to content
Snippets Groups Projects
Commit aa7cd8aa authored by Giammarco, Kristin M's avatar Giammarco, Kristin M
Browse files

Merge branch 'master' into 'Keane_Branch'

# Conflicts:
#   Example01_SimpleMessageFlow_EventCoordination.mp
#   Example01a_UnreliableMessageFlow_VirtualEvents.mp
#   Example02_DataFlow_EventSharing.mp
#   Example03_ATMWithdrawal_BehaviorOfEnvironment.mp
#   Example06_UnreliableChannel_AssertionChecking.mp
#   Example09_PipeFilter_TraceAnnotationQueries.mp
#   Example12_CardiacArrestWorkflow_VirtualEvents.mp
#   Example15_BackpackWeight_IntervalAttributes.mp
#   Example18_RedGreen_BayesianProbabilityCalculationsType2.mp
#   Example21_DataFlow_LocalReport.mp
#   Example22_SimpleMessageFlow_GlobalReport.mp
#   Example24_Compiler_ComponentDiagram.mp
#   Example25_Graph_as_Data_Structure.mp
#   Example26_UnreliableMessageFlow_GlobalQuery.mp
#   Example28_AssemblingStatistics_Histogram.mp
#   Example29_AssemblingStatistics_Gantt_Chart.mp
#   Example30_MicrowaveOven_ModelingModelChecking.mp
#   Example33_ATMWithdrawal_StatechartView.mp
#   Example35_FiniteStateDiagram_PathDiagram.mp
#   Example36_Authentication_SystemReuse.mp
parents f2268f64 51979e9b
No related branches found
No related tags found
2 merge requests!6Keane branch,!5Keane branch
Showing
with 64 additions and 33 deletions
/* Example 11 Publish/Subscribe architecture model. /* Example 10. Model of [Publish_Subscribe]
Publisher sends a notification to all active Subscribers Publisher sends a notification to all active Subscribers
when new information is available. when new information is available.
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
scope 1, 1 trace in less than 1 sec. scope 1, 1 trace in less than 1 sec.
scope 2, 51 traces in less than 1 sec. scope 2, 51 traces in less than 1 sec.
scope 3 3813 traces in approx. 5 min. scope 3 3813 traces in approx. 5 min.
*/
==========================================================*/
SCHEMA Publish_Subscribe SCHEMA Publish_Subscribe
......
/* ring.mp /* Example 11. Model of [Ring_Topology]
ring topology ring topology
an example of user-defined relation use an example of user-defined relation use
The following is a model of network ring, The following is a model of network ring,
where each node interacts with its left and right neighbors only. where each node interacts with its left and right neighbors only.
------------------------------------------*/
==========================================================*/
SCHEMA Ring_Topology SCHEMA Ring_Topology
/* model of networking ring, where each node sends/receives /* model of networking ring, where each node sends/receives
......
/* Example18 Workflow pattern /* Example 12. Model of [Cardiac_Arrest_Workflow]
the web site the web site
http://workflowpatterns.com/patterns/control/index.php http://workflowpatterns.com/patterns/control/index.php
...@@ -13,7 +13,8 @@ is commenced. Completion of the other task is ignored and does not result ...@@ -13,7 +13,8 @@ is commenced. Completion of the other task is ignored and does not result
in a second instance of the triage task. in a second instance of the triage task.
run for scope 1 run for scope 1
*/
==========================================================*/
SCHEMA Cardiac_Arrest_Workflow SCHEMA Cardiac_Arrest_Workflow
......
/* Example 19, Consumers/Suppliers /* Example 13. Model of [Consumers_Suppliers]
Asynchronous coordination and dependency definition example. Asynchronous coordination and dependency definition example.
...@@ -8,7 +8,8 @@ single Request_delivery -> Consume chain ...@@ -8,7 +8,8 @@ single Request_delivery -> Consume chain
on Gryphon: on Gryphon:
scope 1, 2 traces, in less than 1 sec. scope 1, 2 traces, in less than 1 sec.
scope 2, 670 traces, approx. time 2.5 min. scope 2, 670 traces, approx. time 2.5 min.
*/
==========================================================*/
SCHEMA Consumers_Suppliers SCHEMA Consumers_Suppliers
......
/* Example23.mp number attribute test */ /* Example 14. Model of [Shopping_Spree]
==========================================================*/
SCHEMA Shopping_Spree SCHEMA Shopping_Spree
......
/* Example 25, Use of interval attributes. /* Example 15. Model of [Backpack_Weight]
Use of interval attributes.
The task is to load a backpack with items not exceeding The task is to load a backpack with items not exceeding
the total weight of 30 units. the total weight of 30 units.
There may be several instances of the same item. There may be several instances of the same item.
run for scopes 1 and up run for scopes 1 and up
==========================================================*/ ==========================================================*/
SCHEMA Backpack_Weight SCHEMA Backpack_Weight
......
/* Example24.mp Bayesian attribute example /* Example 18. Model of [Red_Green]
Bayesian attribute example
Suppose there are 3 red and 2 green balls in a box. Suppose there are 3 red and 2 green balls in a box.
We pick at random three balls, one at a time. We pick at random three balls, one at a time.
......
/* Example 29 /* Example 19. Model of [Stack_Behavior]
An example of Bayesian probability calculation. An example of Bayesian probability calculation.
...@@ -23,7 +23,8 @@ ...@@ -23,7 +23,8 @@
ROOT Stack: (*<0..M> ( <<0.75>> push | <<0.25>> pop ) *) ROOT Stack: (*<0..M> ( <<0.75>> push | <<0.25>> pop ) *)
this will require to update the first step in p2 assignment (line 57) this will require to update the first step in p2 assignment (line 57)
it will become p2 := 1/(M + 1); it will become p2 := 1/(M + 1);
==================================================================*/
==========================================================*/
SCHEMA Stack_Behavior SCHEMA Stack_Behavior
......
/* Example 32. Local graph within the event trace. /* Example 23. Model of [Car_Race]
Local graph within the event trace.
run for scope 1 and up run for scope 1 and up
------------------------------------------------*/
==========================================================*/
SCHEMA Car_Race SCHEMA Car_Race
Car: Start Car: Start
......
/* Example 33 /* Example 24. Model of [Compiler]
Compiler front end, bottom-up parser Compiler front end, bottom-up parser
Lexer and parser in interactive mode. Lexer and parser in interactive mode.
......
/* Example 34. /* Example 25. Model of [Graph_as_Data_Structure]
Accumulating and rendering statistics from event traces.
Accumulating and rendering statistics from event traces.
Graphs as container data structures Graphs as container data structures
============================================================*/ ============================================================*/
SCHEMA Graph_as_Data_Structure SCHEMA Graph_as_Data_Structure
......
/* Example 37 GLOBAL query /* Example 26. Model of [Unreliable_Message_Flow]
GLOBAL query
Unreliable message flow. Unreliable message flow.
Assuming that probability for a message to get lost is 0.2, Assuming that probability for a message to get lost is 0.2,
......
/* /* Example 27. Model of [Table_and_Bar_Chart]
Example42
Assembling statistics about a current trace in a TABLE and rendering it. Assembling statistics about a current trace in a TABLE and rendering it.
Table and bar chart example, run for scope 1 Table and bar chart example, run for scope 1
*/
==========================================================*/
SCHEMA Table_and_Bar_Chart SCHEMA Table_and_Bar_Chart
ROOT A: a b c a; ROOT A: a b c a;
......
/* Example 43 /* Example 28. Model of [Histogram]
Histogram example, run for scopes 1, 2, 3, and up Histogram example, run for scopes 1, 2, 3, and up
*/ */
SCHEMA Histogram SCHEMA Histogram
......
/* Example44 /* Example 29. Model of [Gantt_Chart]
Gantt chart example Gantt chart example
*/ */
SCHEMA Gantt_Chart SCHEMA Gantt_Chart
......
/* Example14, microwave_oven.mp /* Example 30. Model of [Microwave_Oven]
example of finite state diagram behavior model, example of finite state diagram behavior model,
CTL formula representation in MP, and model checking for a small scope. CTL formula representation in MP, and model checking for a small scope.
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
run for: run for:
scope 1 (28 traces, 2 counterexamples, 1.75 sec.) scope 1 (28 traces, 2 counterexamples, 1.75 sec.)
*/
==========================================================*/
SCHEMA Microwave_Oven SCHEMA Microwave_Oven
......
/* Example15_Petri_net.mp /* Example 32. Model of [Petri_Net]
modeling Petri net behavior modeling Petri net behavior
see the Petri net diagram in Sec. 2.16.2 in the MP v.4 Language Manual see the Petri net diagram in Sec. 2.16.2 in the MP v.4 Language Manual
scope 1 (2 traces, 0.02 sec.) scope 1 (2 traces, 0.02 sec.)
...@@ -6,7 +7,8 @@ ...@@ -6,7 +7,8 @@
to obtain in the Global view Petri net diagram to obtain in the Global view Petri net diagram
extracted from the event traces, run scope 2 extracted from the event traces, run scope 2
=======================================================*/
==========================================================*/
SCHEMA Petri_Net SCHEMA Petri_Net
/* behavior of each place and transition /* behavior of each place and transition
......
/* Example 36. /* Example 33. Model of [ATM_Withdrawal]
Extracting Statechart view from MP model. Extracting Statechart view from MP model.
run for scope 1 and up run for scope 1 and up
==========================================================*/ ==========================================================*/
SCHEMA ATM_Withdrawal SCHEMA ATM_Withdrawal
......
/* Example13_FiniteStateDiagram.mp /* Example 34. Model of [Finite_State_Diagram_with_Path_Annotation]
example of finite state diagram behavior model, example of finite state diagram behavior model,
contains non-deterministic transitions (from S1 with symbol a), contains non-deterministic transitions (from S1 with symbol a),
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
scope 1 (4 traces), scope 1 (4 traces),
scope 2 (30 traces), scope 2 (30 traces),
scope 3 (258 traces) scope 3 (258 traces)
*/
==========================================================*/
SCHEMA Finite_State_Diagram_with _Path_Annotation SCHEMA Finite_State_Diagram_with _Path_Annotation
......
/* Example 35. /* Example 35. Model of [Finite_State_Diagram_with_Path_Diagram]
Adding path and state transition diagrams to Adding path and state transition diagrams to
the Finite Automaton behavior model. the Finite Automaton behavior model.
run for scope 2 run for scope 2
==========================================================*/ ==========================================================*/
SCHEMA Finite_State_Diagram_with_Path_Diagram SCHEMA Finite_State_Diagram_with_Path_Diagram
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment