Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
221c30ee
Commit
221c30ee
authored
Sep 14, 2012
by
berge
Browse files
Added TC_DEN_KAFW_BV_10
parent
1d07feb4
Changes
4
Hide whitespace changes
Inline
Side-by-side
ttcn/DENM/LibItsDenm_Functions.ttcn
View file @
221c30ee
...
...
@@ -95,6 +95,23 @@ module LibItsDenm_Functions {
}
}
/**
* @desc Changes the position of the IUT
* @param p_latitude
* @param p_longitude
* @param p_elevation
*/
function
f_utChangePosition
(
template
(
value
)
UtChangePosition
p_position
)
runs
on
ItsDenm
{
utPort
.
send
(
p_position
);
alt
{
[]
utPort
.
receive
(
UtChangePositionResult
:?
)
{
tc_wait
.
stop
;
}
[]
a_utDefault
();
}
}
}
// End of group utFunctions
group
denmConfigurationFunctions
{
...
...
ttcn/DENM/LibItsDenm_Templates.ttcn
View file @
221c30ee
...
...
@@ -105,6 +105,16 @@ module LibItsDenm_Templates {
actionId
:=
p_actionId
}
template
(
value
)
UtChangePosition
m_utChangePosition
(
in
template
(
value
)
integer
p_latitude
,
in
template
(
value
)
integer
p_longitude
,
in
template
(
value
)
integer
p_elevation
:=
0
)
:=
{
latitude
:=
p_latitude
,
longitude
:=
p_longitude
,
elevation
:=
p_elevation
}
}
// end utPrimitives
}
// end primitives
...
...
ttcn/DENM/LibItsDenm_TestSystem.ttcn
View file @
221c30ee
...
...
@@ -25,9 +25,9 @@ module LibItsDenm_TestSystem {
*/
type
port
UpperTesterPort
message
{
out
UtInitialize
,
UtTrigger
,
UtUpdate
,
UtTermination
;
UtInitialize
,
UtTrigger
,
UtUpdate
,
UtTermination
,
UtChangePosition
;
in
UtInitializeResult
,
UtTriggerResult
,
UtUpdateResult
,
UtTerminationResult
,
UtEventInd
;
UtInitializeResult
,
UtTriggerResult
,
UtUpdateResult
,
UtTerminationResult
,
UtChangePositionResult
,
UtEventInd
;
}
// end UpperTesterPort
}
// end portDefinitions
...
...
ttcn/DENM/LibItsDenm_TypesAndValues.ttcn
View file @
221c30ee
...
...
@@ -95,6 +95,16 @@ module LibItsDenm_TypesAndValues {
ActionID
actionId
}
type
boolean
UtTerminationResult
;
/**
* @desc Upper Tester message to change the position of IUT. Values a relatives
*/
type
record
UtChangePosition
{
integer
latitude
,
integer
longitude
,
integer
elevation
}
type
boolean
UtChangePositionResult
;
/**
* @desc Upper Tester message to check event/status on DENM IUT
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment