-
Notifications
You must be signed in to change notification settings - Fork 27
Coordination automata #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Rorck
wants to merge
31
commits into
dev
Choose a base branch
from
coordination-automata
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b4d44b4
First version of the coordination-automata
Rorck b5cd716
Simplified coordination automata
Rorck 379b053
Coordination automata transformation WIP
Rorck b61d1af
Coord automata is now generated to env
Rorck 9bdcd67
Merge branch 'dev' into coordination-automata
Rorck 0368b78
Added util functions for EnumerationExpressions
Rorck 3e009a3
More work on coordination automata
Rorck cefb895
Added additional logging to SystemReducer
Rorck f01a48c
Added Imply serialization to XstsExprSerializer, see Theta XstsDsl Im…
Rorck e6261cf
Added CoordinationVariableAnnotation to mark variable used for coordi…
Rorck af28c88
Simplified coordination transformation using CoordinationVariableAnno…
Rorck 666c127
Removed unnecessary printout
Rorck a1a8644
Merge branch 'dev' into coordination-automata
Rorck 6b2070e
Added PlantUML visualization for CoordinationAutomata
Rorck 57aff9f
Added separate warnings for unconnected ports
Rorck 4990c71
Added util function for oncycle trigger to StatechartUtil
Rorck 082ade4
Added util functions for CoordinationTransitions
Rorck a8b4df3
Added util function to generate all possible permutations of a list
Rorck dbfa0a0
Modified unordered coordination transformation
Rorck 129cd68
Introduced delay action to xsts model
Rorck d5a5ba2
Added delay actions to coordination automata env
Rorck 1cc2914
Added handling of delay actions to the clock handling of GammaToXstsT…
Rorck 2a12fef
Commit changes
Rorck 2bbc76a
Merged newest dev
Rorck def3db8
Fixed minor mistake
Rorck 0694932
Added test models for coordination automaton
Rorck 59e2e51
Addressed several comments
Rorck dbd715f
Merged dev
Rorck e842b5c
Changed superclass of DelayAction to AbstractUpdateAction
Rorck e25c819
Added resettig channel events to coordination automaton
Rorck c71a964
Coordination automata states now shows in gpl and trace
Rorck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -436,8 +436,9 @@ DeepHistoryState returns DeepHistoryState: | |
|
|
||
| Component returns InterfaceModel::Component: | ||
| SynchronousComponent | | ||
| AsynchronousComponent | | ||
| CoordinationStatechartDefinition | ||
| AsynchronousComponent | | ||
| SynchronousCoordinationStatechartDefinition | | ||
| AsynchronousCoordinationStatechartDefinition | ||
| ; | ||
|
|
||
| SynchronousComponent returns CompositeModel::SynchronousComponent: | ||
|
|
@@ -738,7 +739,7 @@ ComponentInstanceReflectiveElementReferenceExpression returns CompositeModel::Co | |
|
|
||
| // | ||
|
|
||
| CoordinationStatechartDefinition returns CoordinationStatechartDefinition: | ||
| SynchronousCoordinationStatechartDefinition returns SynchronousCoordinationStatechartDefinition: | ||
| '@Coordination' | ||
| ( | ||
| ('@RegionSchedule' '=' schedulingOrder=SchedulingOrder)? & | ||
|
|
@@ -749,20 +750,90 @@ CoordinationStatechartDefinition returns CoordinationStatechartDefinition: | |
| annotations+=StatechartContractAnnotation | ||
| )* | ||
| ) | ||
| 'statechart' name=ID | ||
| 'coordination-statechart' name=ID | ||
| ('(' ((parameterDeclarations+=ParameterDeclaration)(',' parameterDeclarations+=ParameterDeclaration)*)? ')')? | ||
| ('[' ((ports+=Port)((',')? ports+=Port)*)? ']')? '{' | ||
| ( | ||
| variableDeclarations+=VariableDeclaration | | ||
| timeoutDeclarations+=TimeoutDeclaration | | ||
| ('invariant' invariants+=Expression) | ||
| )* | ||
| ( | ||
| regions+=Region | | ||
| transitions+=Transition | ||
| )* | ||
| functionDeclarations+=FunctionDeclaration* | ||
| ('[' ((ports+=Port)((',')? ports+=Port)*)? ']')? | ||
| '{' | ||
| ( | ||
| components+=SynchronousComponentInstance | | ||
| portBindings+=PortBinding | | ||
| channels+=Channel | ||
| )* | ||
| '}' | ||
| '<' | ||
| ( | ||
| variableDeclarations+=VariableDeclaration | | ||
| timeoutDeclarations+=TimeoutDeclaration | | ||
| ('invariant' invariants+=Expression) | ||
| )* | ||
| ( | ||
| regions+=Region | | ||
| coordinationTransitions+=CoordinationTransition | ||
| )* | ||
| functionDeclarations+=FunctionDeclaration* | ||
| '>' | ||
| ; | ||
|
|
||
| AsynchronousCoordinationStatechartDefinition returns AsynchronousCoordinationStatechartDefinition: | ||
| '@Coordination' | ||
| '@Asynchronous' | ||
| ( | ||
| ('@RegionSchedule' '=' schedulingOrder=SchedulingOrder)? & | ||
| ('@OrthogonalRegionSchedule' '=' orthogonalRegionSchedulingOrder=OrthogonalRegionSchedulingOrder)? & | ||
| ('@TransitionPriority' '=' transitionPriority=TransitionPriority)? & | ||
| ('@GuardEvaluation' '=' guardEvaluation=GuardEvaluation)? & | ||
| ( annotations+=ComponentAnnotation | | ||
| annotations+=StatechartContractAnnotation | ||
| )* | ||
| ) | ||
| 'coordination-statechart' name=ID | ||
| ('(' ((parameterDeclarations+=ParameterDeclaration)(',' parameterDeclarations+=ParameterDeclaration)*)? ')')? | ||
| ('[' ((ports+=Port)((',')? ports+=Port)*)? ']')? | ||
| '{' | ||
| ( | ||
| components+=AsynchronousComponentInstance | | ||
| portBindings+=PortBinding | | ||
| channels+=Channel | ||
| )* | ||
| '}' | ||
| '<' | ||
| ( | ||
| variableDeclarations+=VariableDeclaration | | ||
| timeoutDeclarations+=TimeoutDeclaration | | ||
| ('invariant' invariants+=Expression) | ||
| )* | ||
| ( | ||
| regions+=Region | | ||
| coordinationTransitions+=CoordinationTransition | ||
| )* | ||
| functionDeclarations+=FunctionDeclaration* | ||
| '>' | ||
| ; | ||
|
|
||
| AbstractCoordinationReferenceExpression returns AbstractCoordinationReferenceExpression: | ||
| SequentialCoordinationReferenceExpression | ||
| | UnorderedCoordinationReferenceExpression | ||
| ; | ||
|
|
||
| SequentialCoordinationReferenceExpression returns SequentialCoordinationReferenceExpression: | ||
| 'seq' '{' instances+=ComponentInstanceReferenceExpression((',') instances+=ComponentInstanceReferenceExpression)* '}' | instances+=ComponentInstanceReferenceExpression | ||
|
||
| ; | ||
|
|
||
| UnorderedCoordinationReferenceExpression returns UnorderedCoordinationReferenceExpression: | ||
| 'unord' '{' instances+=ComponentInstanceReferenceExpression ((',') instances+=ComponentInstanceReferenceExpression)* '}' | ||
| ; | ||
|
|
||
| CoordinationTransition returns CoordinationTransition: | ||
|
|
||
| (annotations+=TransitionAnnotation)* | ||
| 'transition' ('(' priority=INTEGER ')')? | ||
| 'from' sourceState=[StateNode] 'to' targetState=[StateNode] | ||
|
|
||
| ('when' trigger=Trigger)? | ||
| ('[' guard=Expression ']')? | ||
| ('execute' coordinatedComponent=AbstractCoordinationReferenceExpression)? | ||
| ('/' ( => effects+=Action)* )? | ||
|
|
||
| ; | ||
|
|
||
| // | ||
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
...uage/src/hu/bme/mit/gamma/statechart/language/validation/StatechartLanguageValidator.java
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.