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
R
regression-suites
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
regression-suites
Commits
0cd1b435
Commit
0cd1b435
authored
Feb 14, 2018
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Ada code to fit with ASN1SCC V4 changes
parent
a03252fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
25 deletions
+21
-25
Demo_Ada_GUI/displayer/displayer.adb
Demo_Ada_GUI/displayer/displayer.adb
+21
-25
No files found.
Demo_Ada_GUI/displayer/displayer.adb
View file @
0cd1b435
...
...
@@ -27,48 +27,44 @@ use Interfaces;
package
body
displayer
is
type
A_String
is
access
String
;
p
erson
:
asn1Scctm_t
;
P
erson
:
asn1Scctm_t
;
S
:
A_String
;
bTmHasArrived
:
boolean
;
n
umber
:
asn1SccHK_T_value_to_plot
:=
0
;
hk
:
aliased
asn1SccHK_T
;
N
umber
:
asn1SccHK_T_value_to_plot
:=
0
;
HK
:
aliased
asn1SccHK_T
;
procedure
displayer_put_tc
(
tc
:
access
asn1SccTC_T
)
is
procedure
Displayer_Put_TC
(
TC
:
access
asn1SccTC_T
)
is
begin
case
asn1SccAction_T_kind
(
tc
.
action
)
is
when
display_PRESENT
=>
for
J
in
1
..
asn1SccAction_T_display_get
(
tc
.
action
).
length
loop
person
.
data
(
J
)
:=
asn1SccAction_T_display_get
(
tc
.
action
).
data
(
J
);
case
TC
.
Action
.
Kind
is
when
Display_PRESENT
=>
for
J
in
1
..
TC
.
Action
.
Display
.
Length
loop
person
.
data
(
J
)
:=
TC
.
Action
.
Display
.
Data
(
J
);
end
loop
;
person
.
length
:=
asn1SccAction_T_display_get
(
tc
.
action
).
length
;
if
(
person
.
length
>
0
)
then
Person
.
Length
:=
TC
.
Action
.
Display
.
Length
;
if
(
person
.
length
>
0
)
then
bTmHasArrived
:=
True
;
end
if
;
when
housekeeping_PRESENT
=>
hk
:=
(
value_to_plot
=>
number
,
destination
=>
asn1SccAction_T_housekeeping_get
(
tc
.
action
));
HousekeepingTM
(
hk
'
access
);
HK
:=
(
Value_To_Plot
=>
Number
,
Destination
=>
TC
.
Action
.
Housekeeping
);
HousekeepingTM
(
HK
'
access
);
when
others
=>
null
;
end
case
;
end
displayer_put_tc
;
procedure
cyclicdisplayer
is
my_tm
:
aliased
asn1Scctm_t
;
i
:
Integer
;
My_TM
:
aliased
asn1Scctm_t
;
I
:
Integer
;
begin
system
.
io
.
put_l
ine
(
"cyclicdisplayer"
);
System
.
IO
.
Put_L
ine
(
"cyclicdisplayer"
);
if
bTmHasArrived
then
for
i
in
1
..
person
.
l
ength
loop
my_tm
.
data
(
i
)
:=
person
.
d
ata
(
i
);
for
i
in
1
..
Person
.
L
ength
loop
My_TM
.
Data
(
i
)
:=
Person
.
D
ata
(
i
);
end
loop
;
my_tm
.
length
:=
person
.
l
ength
;
router_send_tm
(
my_tm
'
access
);
My_TM
.
Length
:=
Person
.
L
ength
;
Router_Send_TM
(
My_TM
'
access
);
end
if
;
number
:=
(
n
umber
+
1
)
mod
16535
;
Number
:=
(
N
umber
+
1
)
mod
16535
;
end
cyclicdisplayer
;
begin
...
...
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