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
a6e672d5
Commit
a6e672d5
authored
Dec 13, 2016
by
garciay
Browse files
Add ETSI legal copyrights tag
Review CAM PICS Rename PICS_GNSS_SCENARIO_SUPPORT into PX_GNSS_SCENARIO_SUPPORT
parent
ab46d30c
Changes
58
Hide whitespace changes
Inline
Side-by-side
ttcn/BTP/LibItsBtp_Functions.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing functions for basic Transport Protocol
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
...
...
ttcn/BTP/LibItsBtp_Pixits.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Basic Transport Protocol Templates
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsBtp_Pixits
{
...
...
ttcn/BTP/LibItsBtp_Templates.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Basic Transport Protocol Templates
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsBtp_Templates
{
...
...
ttcn/BTP/LibItsBtp_TestSystem.ttcn
View file @
a6e672d5
/**
*
@author ETSI / STF405
* @author
ETSI / STF405
* @version $URL$
* $Id$
* @desc Test System module for ITS BTP
* $Id$
* @desc Test System module for ITS BTP
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsBtp_TestSystem
{
...
...
ttcn/BTP/LibItsBtp_TypesAndValues.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing types and values for Basic Transport Protocol
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsBtp_TypesAndValues
{
...
...
ttcn/CAM/LibItsCam_Functions.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing common functions for ITS CAM
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCam_Functions
{
...
...
@@ -211,7 +215,7 @@ module LibItsCam_Functions {
*/
function
f_acLoadScenario
(
Scenario
p_scenario
)
runs
on
ItsCam
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
)
{
f_acTriggerGnssEvent
(
m_loadScenario
(
p_scenario
));
}
}
// End of function f_acLoadScenario
...
...
@@ -221,7 +225,7 @@ module LibItsCam_Functions {
*/
function
f_acStartScenario
()
runs
on
ItsCam
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
)
{
f_acTriggerGnssEvent
(
m_startScenario
);
vc_scenarioStarted
:=
true
;
}
...
...
@@ -232,7 +236,7 @@ module LibItsCam_Functions {
*/
function
f_acStopScenario
()
runs
on
ItsCam
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
f_acTriggerGnssEvent
(
m_stopScenario
);
vc_scenarioStarted
:=
false
;
}
...
...
@@ -241,7 +245,7 @@ module LibItsCam_Functions {
function
f_acAwaitDistanceCovered
(
float
p_distanceToCover
)
runs
on
ItsCam
return
FncRetCode
{
var
FncRetCode
v_ret
:=
e_success
;
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
f_acTriggerGnssEvent
(
m_distanceToCover
(
p_distanceToCover
));
tc_ac
.
start
;
...
...
@@ -266,14 +270,14 @@ module LibItsCam_Functions {
function
f_acChangeSpeed
(
SpeedValue
p_deltaSpeedValue
)
runs
on
ItsCam
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
f_acTriggerGnssEvent
(
m_changeScenarioSpeed
(
p_deltaSpeedValue
));
}
}
// End of function f_acChangeSpeed
function
f_acChangeHeading
(
HeadingValue
p_deltaHeadingValue
)
runs
on
ItsCam
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
f_acTriggerGnssEvent
(
m_changeScenarioHeading
(
p_deltaHeadingValue
));
}
}
// End of function f_acChangeHeading
...
...
@@ -456,7 +460,7 @@ module LibItsCam_Functions {
group
camAuxilaryFunctions
{
function
f_changeSpeed
(
SpeedValue
p_deltaSpeedValue
)
runs
on
ItsCam
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
false
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
false
)
{
f_utTriggerEvent
(
m_changeSpeed
(
p_deltaSpeedValue
));
}
else
{
...
...
@@ -465,7 +469,7 @@ module LibItsCam_Functions {
}
function
f_changeHeading
(
HeadingValue
p_deltaHeadingValue
)
runs
on
ItsCam
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
false
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
false
)
{
f_utTriggerEvent
(
m_changeHeading
(
p_deltaHeadingValue
));
}
else
{
...
...
ttcn/CAM/LibItsCam_Pics.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc CAM PICS
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCam_Pics
{
...
...
@@ -12,65 +16,77 @@ module LibItsCam_Pics {
group
camPics
{
/**
* @desc Is the IUT RSU?
* @see ETSI TS 102 868-1 Table A.1
*/
modulepar
boolean
PICS_RSU
:=
false
;
/**
* @desc Is the IUT running in secured mode?
* @see ETSI TS 102 868-1 Table A.1
*/
modulepar
boolean
PICS_IS_IUT_SECURED
:=
false
;
/**
* @desc Is IUT a public transport vehicle
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.2
*/
modulepar
boolean
PICS_PUBLICTRANS
:=
false
;
/**
* @desc Is IUT a special transport vehicle
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.2
*/
modulepar
boolean
PICS_SPECIALTRANS
:=
false
;
/**
* @desc Is IUT a dangerous goods vehicle
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.2
*/
modulepar
boolean
PICS_DANGEROUSGOODS
:=
false
;
/**
* @desc Is IUT a road works vehicle
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.2
*/
modulepar
boolean
PICS_ROADWORKS
:=
false
;
/**
* @desc Is IUT a rescue vehicle
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.2
*/
modulepar
boolean
PICS_RESCUE
:=
false
;
/**
* @desc Is IUT an emergency vehicle
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.2
*/
modulepar
boolean
PICS_EMERGENCY
:=
false
;
/**
* @desc Is IUT a safety car vehicle
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.2
*/
modulepar
boolean
PICS_SAFETY_CAR
:=
false
;
/**
* @desc Does IUT support 'specialVehicleContainer' in CamParameters?
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.2
*/
modulepar
boolean
PICS_SPECIALVEHICLECONTAINER
:=
true
;
/**
* @desc Maximum time interval between CAM generations (in seconds).
* Default value, as per base standard: 1.0s
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.5
*/
modulepar
float
PICS_T_GENCAMMAX
:=
1.000
;
/**
* @desc Minimum time interval between CAM generations (in seconds).
* Default value, as per base standard: 0.1s
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.5
*/
modulepar
float
PICS_T_GENCAMMIN
:=
0.100
;
...
...
@@ -79,32 +95,22 @@ module LibItsCam_Pics {
* according to the requirements of the
* Decentralized Congestion Control(DCC).
* Default value, as per base standard: 0.1s
* @see ETSI TS 102 868-
2
Table
3
* @see ETSI TS 102 868-
1
Table
A.5
*/
modulepar
float
PICS_T_GENCAMDCC
:=
0.100
;
/**
* @desc Support for CAM generation
* @see ETSI TS 102 868-
2
Table 3
* @see ETSI TS 102 868-
1
Table
A.
3
*/
modulepar
boolean
PICS_CAM_GENERATION
:=
true
;
/**
* @desc Support for CAM reception
* @see ETSI TS 102 868-
2
Table 3
* @see ETSI TS 102 868-
1
Table
A.
3
*/
modulepar
boolean
PICS_CAM_RECEPTION
:=
true
;
/**
* @desc Is the IUT RSU?
*/
modulepar
boolean
PICS_RSU
:=
false
;
/**
* @desc Is the IUT running in secured mode?
*/
modulepar
boolean
PICS_IS_IUT_SECURED
:=
false
;
}
// end camPics
}
// end LibItsCam_Pics
ttcn/CAM/LibItsCam_Pixits.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing Pixits for CAM
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCam_Pixits
{
...
...
ttcn/CAM/LibItsCam_Templates.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing base template definitions for CAM
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCam_Templates
{
...
...
ttcn/CAM/LibItsCam_TestSystem.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Test System module for ITS CAM
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCam_TestSystem
{
...
...
ttcn/CAM/LibItsCam_TypesAndValues.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing types and values for CAM Protocol
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCam_TypesAndValues
{
...
...
ttcn/Common/LibItsCommon_Functions.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing common functions for ITS
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
...
...
ttcn/Common/LibItsCommon_Pixits.ttcn
View file @
a6e672d5
...
...
@@ -3,13 +3,17 @@
* @version $URL$
* $Id$
* @desc Common PIXITS
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCommon_Pixits
{
/**
* @desc IUT Station Id
* Station Id used in CAM/DENM messages sent by the
tester
* Station Id used in CAM/DENM messages sent by the
IUT
*/
modulepar
integer
PX_IUT_STATION_ID
:=
1
;
...
...
@@ -49,6 +53,6 @@ module LibItsCommon_Pixits {
/**
* @desc Support for GNSS scenario
*/
modulepar
boolean
P
ICS
_GNSS_SCENARIO_SUPPORT
:=
false
;
modulepar
boolean
P
X
_GNSS_SCENARIO_SUPPORT
:=
false
;
}
// end LibItsCommon_Pixits
\ No newline at end of file
ttcn/Common/LibItsCommon_Templates.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing base template definitions for DENM
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCommon_Templates
{
...
...
ttcn/Common/LibItsCommon_TestSystem.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Test System module for ITS
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCommon_TestSystem
{
...
...
ttcn/Common/LibItsCommon_TypesAndValues.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing common types and values for ITS Protocols
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsCommon_TypesAndValues
{
...
...
ttcn/Common/LibItsExternal_TypesAndValues.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing types and values for External protocols
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsExternal_TypesAndValues
{
...
...
ttcn/DENM/LibItsDenm_Functions.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing functions for DENM
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsDenm_Functions
{
...
...
@@ -319,7 +323,7 @@ module LibItsDenm_Functions {
*/
function
f_acLoadScenario
(
Scenario
p_scenario
)
runs
on
ItsDenm
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
)
{
f_acTriggerGnssEvent
(
m_loadScenario
(
p_scenario
));
}
}
// End of function f_acLoadScenario
...
...
@@ -329,7 +333,7 @@ module LibItsDenm_Functions {
*/
function
f_acStartScenario
()
runs
on
ItsDenm
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
)
{
f_acTriggerGnssEvent
(
m_startScenario
);
vc_scenarioStarted
:=
true
;
}
...
...
@@ -340,7 +344,7 @@ module LibItsDenm_Functions {
*/
function
f_acStopScenario
()
runs
on
ItsDenm
{
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
f_acTriggerGnssEvent
(
m_stopScenario
);
vc_scenarioStarted
:=
false
;
}
...
...
@@ -349,7 +353,7 @@ module LibItsDenm_Functions {
function
f_acAwaitDistanceCovered
(
float
p_distanceToCover
)
runs
on
ItsDenm
return
FncRetCode
{
var
FncRetCode
v_ret
:=
e_success
;
if
(
P
ICS
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
if
(
P
X
_GNSS_SCENARIO_SUPPORT
==
true
and
vc_scenarioStarted
==
true
)
{
f_acTriggerGnssEvent
(
m_distanceToCover
(
p_distanceToCover
));
tc_ac
.
start
;
...
...
ttcn/DENM/LibItsDenm_Pics.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc DENM PICS
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsDenm_Pics
{
...
...
ttcn/DENM/LibItsDenm_Pixits.ttcn
View file @
a6e672d5
...
...
@@ -3,6 +3,10 @@
* @version $URL$
* $Id$
* @desc Module containing Pixits for DENM
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module
LibItsDenm_Pixits
{
...
...
Prev
1
2
3
Next
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