Newer
Older
// LibIts
import from ITS_Container language "ASN.1:1997" all;
import from DSRC language "ASN.1:1997" all;
// LibItsGeoNetworking
import from LibItsGeoNetworking_TestSystem all;
import from LibItsGeoNetworking_TypesAndValues all;
// AtsRSUsSimulator
import from ItsRSUsSimulator_TypesAndValues all;
import from ItsRSUsSimulator_Pics all;
import from ItsRSUsSimulator_Pixits all;
/**
* @desc Test component for ITS Network and Transport layer
*/
type component ItsRSUsSimulator extends ItsGeoNetworking {
/**
* @desc RSUsimulator configuration port
*/
port ConfigRsuSimulatorPort cfPort;
garciay
committed
* @desc RSU position
garciay
committed
var LongPosVector vc_longPosVectorRsu;
garciay
committed
* @desc RSU Geonetworking area
garciay
committed
var GeoArea vc_geoArea;
garciay
committed
* @desc Supported sent messages templates: one or more from CAM, DENM, MAPEM, SPATEM, IVIM, SSEM
var template (value) RsuMessagesValueList vc_rsuMessagesValueList := {};
/**
* @desc Current RSU identifier
*/
var integer vc_rsu_id := PX_RSU_ID - 1;
garciay
committed
* @desc DENM event counter: one RSU can send one or mode different DENM
garciay
committed
* @desc DENM sequence number index
var SequenceNumber vc_sequenceNumber := 0;
var MsgCount vc_msgIssueRevision := 0;
garciay
committed
* @desc List of MovementState per intersection and per RSU
*/
var template (value) MovementListPerIntersectionRsu vc_states;
/**
garciay
committed
* @desc Current SPATEM state
*/
var integer vc_spatemStatesId := 0;
timer tc_cam := PICS_CAM_FREQUENY;
timer tc_denm := PICS_DENM_FREQUENY;
timer tc_mapem := PICS_MAPEM_FREQUENY;
timer tc_spatem := PICS_SPATEM_FREQUENY;
timer tc_ivim := PICS_IVIM_FREQUENY;
} // End of component ItsRSUsSimulator
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/**
* @desc Test system component for ITS Network and Transport layer
*/
type component ItsRSUsSimulatorSystem extends ItsGeoNetworkingSystem {
port ConfigRsuSimulatorPort cfPort;
}
group configRsuSimulatorTypes {
type record CfInitialize { };
type charstring CfEvent;
type boolean CfResult;
type union CfEventInd {
anytype empty
}
} with {
encode "ConfigTester"
}// End of group configRsuSimulatorTypes
group configRsuSimulatorPort {
/**
* @desc Configuration RSUsimulator port
*/
type port ConfigRsuSimulatorPort message {
out
CfInitialize, CfResult;
in
CfEvent, CfEventInd
} // End of ConfigRsuSimulatorPort
} // End of group configRsuSimulatorPort