Commit 480e13a2 authored by berge's avatar berge
Browse files

Added PICS selection in all TPs.

/!\ work in progress. Compilation unsuccessful /!\
parent 9cbe3c66
Loading
Loading
Loading
Loading
+27 −27
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ module LibItsGeoNetworking_Pics {
        
        /**
         * @desc GeoNetworking address of the GeoAdhoc router
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/1
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar GN_Address PICS_GN_LOCAL_GN_ADDR := {
            typeOfAddress := e_manual,
@@ -30,157 +30,157 @@ module LibItsGeoNetworking_Pics {
        
        /**
         * @desc Is address manually configured
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/2
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar TypeOfAddress /*FIXME AMB*/   PICS_GN_LOCAL_ADDR_CONF_METHOD := e_manual;
        
        /**
         * @desc Is the IUT mobile?
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/5
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar boolean PICS_GN_IS_MOBILE := true;
        
        /**
         * @desc Minimum update frequency of local position vector (LPV) in ms
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/7
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_MINIMUM_UPDATE_FREQUENCY_LPV := 1000;
            
        /**
         * @desc Maximum size of GN-SDU [bytes]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/9
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_MAX_SDU_SIZE := 1398;
        
        /**
         * @desc GN_MAX: Maximum size of GeoNetworking header [bytes]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/10
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_MAX_GN_HEADER_SIZE := 88;
        
        /**
         * @desc Lifetime of location table entry [s]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/11
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_LIFETIME_LOC_TE := 20;

        /**
         * @desc GN Security enabled or disabled
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/12
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar boolean PICS_GN_SECURITY := false;
        
        /**
         * @desc Maximum number of retransmissions of LS_REQUEST packets
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/14
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_LOCATION_SERVICE_MAX_RETRANS := 10;
        
        /**
         * @desc Duration of Location service retransmit timer [ms]
         * @see  ETSI TS 102 871-1 v1.1.1 A.32/15
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_LOCATION_SERVICE_RETRANSMIT_TIMER := 1000;
        
        /**
         * @desc Size of Location service packet buffer [Byte]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/16
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_LOCATION_SERVICE_PACKET_BUFFER_SIZE := 1024;
        
        /**
         * @desc Duration of Beacon service retransmit timer [ms]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/17
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_BEACON_SERVICE_RETRANSMIT_TIMER := 3000;
        
        /**
         * @desc Maximum beacon jitter [ms]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/18
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_BEACON_SERVICE_MAX_JITTER := 150;
        
        /**
         * @desc Default hop limit indicating the maximum number of hops a packet travels
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/19
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar UInt8 PICS_GN_DEFAULT_HOP_LIMIT := 10;
        
        /**
         * @desc Upper limit of the maximum lifetime [s]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/20
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_MAX_PACKET_LIFETIME := 600;
        
        /**
         * @desc Lower limit of the packet repetition interval [km^2]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/24
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar float PICS_GN_MAX_GEO_AREA_SIZE:= 10.0;
        
        /**
         * @desc Lower limit of the packet repetition interval [ms]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/25
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_MIN_PACKET_REPETITION_INTERVAL := 100;
        
        /**
         * @desc Default GeoUnicast forwarding algorithm
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/26
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar GeoUnicastForwardingAlgorithm PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM := e_greedy;
        
        /**
         * @desc Default GeoBroadcast forwarding algorithm
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/27
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar GeoBroadcastForwardingAlgorithm PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM := e_advanced;
        
        /**
         * @desc Minimum duration a GUC shall be buffered in the CBF packet buffer [ms]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/28
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_GEOUNICAST_CBF_MIN_TIME := 1;
        
        /**
         * @desc Maximum duration a GUC shall be buffered in the CBF packet buffer [ms]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/29
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_GEOUNICAST_CBF_MAX_TIME := 100;

        /**
         * @desc Minimum duration a GBC shall be buffered in the CBF packet buffer [ms]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/30
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_GEOBROADCAST_CBF_MIN_TIME := 1;
        
        /**
         * @desc Maximum duration a GBC shall be buffered in the CBF packet buffer [ms]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/31
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_GEOBROADCAST_CBF_MAX_TIME := 100;
                
        /**
         * @desc Default theoretical maximum communication range [m]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/32
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_DEFAULT_MAX_COMMUNICATION_RANGE := 1000;
        
        /**
         * @desc Size of UC forwarding packet buffer [Kbytes]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/36
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_UC_FORWARDING_PACKET_BUFFER_SIZE := 256;
        
        /**
         * @desc Size of BC forwarding packet buffer [Kbytes]
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/37
         * @see  ETSI TS 102 871-2 Table 4
         */
        modulepar integer PICS_GN_BC_FORWARDING_PACKET_BUFFER_SIZE := 1024;
        
         /**
         * @desc MAX_COUNTER used in Advanced GBC forwarding
         * @see  ETSI TS 102 871-1 v2.1.1 A.32/XX FIXME: not defined as protocol constant in base spec
         * @see  FIXME: not defined as protocol constant in base spec
         */
        modulepar integer PICS_GN_ADVANCED_BC_FORWARDING_MAX_COUNTER := 3;