Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PolyORB-HI-Ada
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
PolyORB-HI-Ada
Commits
7c3529e6
Commit
7c3529e6
authored
May 16, 2018
by
yoogx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Minor reformatting
parent
c79f1dd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
58 deletions
+57
-58
examples/aadlv2/producer_consumer/software.aadl
examples/aadlv2/producer_consumer/software.aadl
+57
-58
No files found.
examples/aadlv2/producer_consumer/software.aadl
View file @
7c3529e6
...
...
@@ -4,72 +4,71 @@ package Software
public
with
Data_Model
;
----------
--
Data
--
----------
----------
--
Data
--
----------
data
Alpha_Type
properties
Data_Model
::
Data_Representation
=>
integer
;
end
Alpha_Type
;
data
Alpha_Type
properties
Data_Model
::
Data_Representation
=>
integer
;
end
Alpha_Type
;
-----------------
--
Subprograms
--
-----------------
-----------------
--
Subprograms
--
-----------------
subprogram
Produce_Spg
features
Data_Source
:
out
parameter
Alpha_Type
;
properties
source_language
=>
Ada95
;
source_name
=>
"Producer_Consumer.Produce_Spg"
;
end
Produce_Spg
;
subprogram
Produce_Spg
features
Data_Source
:
out
parameter
Alpha_Type
;
properties
source_language
=>
Ada95
;
source_name
=>
"Producer_Consumer.Produce_Spg"
;
end
Produce_Spg
;
subprogram
Consume_Spg
features
Data_Sink
:
in
parameter
Alpha_Type
;
properties
source_language
=>
Ada95
;
source_name
=>
"Producer_Consumer.Consume_Spg"
;
end
Consume_Spg
;
subprogram
Consume_Spg
features
Data_Sink
:
in
parameter
Alpha_Type
;
properties
source_language
=>
Ada95
;
source_name
=>
"Producer_Consumer.Consume_Spg"
;
end
Consume_Spg
;
-------------
--
Threads
--
-------------
-------------
--
Threads
--
-------------
thread
P
features
Data_Source
:
out
data
port
Alpha_Type
;
end
P
;
thread
P
features
Data_Source
:
out
data
port
Alpha_Type
;
end
P
;
thread
implementation
P
.
Impl
calls
Mycall
:
{
P_Spg
:
subprogram
Produce_Spg
;
};
connections
parameter
P_Spg
.
Data_Source
->
Data_Source
;
properties
Dispatch_Protocol
=>
Periodic
;
Period
=>
200
M
s
;
end
P
.
Impl
;
thread
implementation
P
.
Impl
calls
Mycall
:
{
P_Spg
:
subprogram
Produce_Spg
;
};
connections
parameter
P_Spg
.
Data_Source
->
Data_Source
;
properties
Dispatch_Protocol
=>
Periodic
;
Period
=>
200
m
s
;
end
P
.
Impl
;
thread
Q
features
Data_Sink
:
in
data
port
Alpha_Type
;
end
Q
;
thread
Q
features
Data_Sink
:
in
data
port
Alpha_Type
;
end
Q
;
thread
implementation
Q
.
Impl
calls
Mycall
:
{
Q_Spg
:
subprogram
Consume_Spg
;
};
connections
parameter
Data_Sink
->
Q_Spg
.
Data_Sink
;
properties
Dispatch_Protocol
=>
Periodic
;
Period
=>
100
M
s
;
end
Q
.
Impl
;
thread
implementation
Q
.
Impl
calls
Mycall
:
{
Q_Spg
:
subprogram
Consume_Spg
;
};
connections
parameter
Data_Sink
->
Q_Spg
.
Data_Sink
;
properties
Dispatch_Protocol
=>
Periodic
;
Period
=>
100
m
s
;
end
Q
.
Impl
;
end
Software
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment