ITS
|
#include <ParameterConfiguration.h>
Public Member Functions | |
ParameterConfiguration () | |
ParameterConfiguration Default constructor. More... | |
~ParameterConfiguration () | |
~ParameterConfiguration ParameterConfiguration destructor. More... | |
ParameterConfiguration & | operator= (const ParameterConfiguration &other) |
operator= ParameterConfiguration affectation operator. More... | |
void | getMacAddr () |
getMacAddr Get MacAddr if itsGnLocalAddrConfMethod = 1 to create GnAddr More... | |
void | updateMID (uchar *mid) |
updateMacAddr Get GnAddr from security layer if itsGnLocalGnAddrConfMethod = 2 or if DAD is invoked More... | |
void | read () |
read Configuration file reading. More... | |
void | readDebug () |
readDebug Configuration printing. More... | |
uchar * | mid () |
mid MID getter. More... | |
uchar | mid (int i) const |
mid Specific byte of the MID getter. More... | |
QString | interface () const |
interface ITS-G5 interface name getter. More... | |
ulong | countryCode () const |
countryCode ITS-S country code getter. More... | |
bool | itsGnGeoAreaLineForwarding () const |
itsGnGeoAreaLineForwarding Is the GN geo area line forwarding used? More... | |
quint8 | itsGnGeoBroadcastForwardingAlgorithm () const |
itsGnGeoBroadcastForwardingAlgorithm GBC forwarding algorithm getter. More... | |
quint8 | itsGnGeoUnicastForwardingAlgorithm () const |
itsGnGeoUnicastForwardingAlgorithm GUC forwarding algorithm getter. More... | |
bool | itsGnLocalAddrConfMethod () const |
itsGnLocalAddrConfMethod ITS GN-ADDR configuration method getter. More... | |
bool | itsGnSecurity () const |
itsGnSecurity Is the security layer used? More... | |
TrafficClass | trafficClass () const |
trafficClass ITS-S traffic class getter. More... | |
VehicleLength_t | vehicleLength () const |
vehicleLength Vehicle length getter. More... | |
VehicleWidth_t | vehicleWidth () const |
vehicleWidth Vehicle width getter. More... | |
VehicleMass_t | vehicleMass () const |
vehicleMass Vehicle mass getter. More... | |
HeightLonCarr_t | heightLonCarrLeft () const |
heightLonCarrLeft Height of the longitudinal carrier on the left side getter. More... | |
HeightLonCarr_t | heightLonCarrRight () const |
heightLonCarrRight Height of the longitudinal carrier on the right side getter. More... | |
PosCentMass_t | posCentMass () const |
posCentMass Position of the center mass getter. More... | |
PosFrontAx_t | posFrontAx () const |
posFrontAx Position of the front axis getter. More... | |
PosLonCarr_t | posLonCarrLeft () const |
posLonCarrLeft Position of the longitudinal carrier on the left side getter. More... | |
PosLonCarr_t | posLonCarrRight () const |
posLonCarrRight Position of the longitudinal carrier on the right side getter. More... | |
TurningRadius_t | turningRadius () const |
turningRadius Vehicle turning radius getter. More... | |
WheelBaseVehicle_t | wheelBaseVehicle () const |
wheelBaseVehicle Wheel base of the vehicle getter. More... | |
EnergyStorageType_t | energyStorageType () const |
energyStorageType Energy storage type getter. More... | |
PositionOfPillars_t | positionOfPillars () const |
positionOfPillars Position of the pillars getter. More... | |
PosPillar_t | positionOfPillars (int i) const |
positionOfPillars Position of a specific pillar getter. More... | |
int | maxRepetitionAdvancedContention () const |
maxRepetitionAdvancedContention Counter used for the Advance GBC forwarding algorithm getter. More... | |
Definition at line 32 of file ParameterConfiguration.h.
ParameterConfiguration::ParameterConfiguration | ( | ) |
ParameterConfiguration Default constructor.
Definition at line 3 of file ParameterConfiguration.cpp.
References getMacAddr(), itsGnLocalAddrConfMethod_anonymous, itsGnLocalAddrConfMethod_auto, itsGnLocalAddrConfMethod_managed, m_itsGnLocalAddrConfMethod, m_mid, and read().
ParameterConfiguration::~ParameterConfiguration | ( | ) |
~ParameterConfiguration ParameterConfiguration destructor.
Definition at line 38 of file ParameterConfiguration.cpp.
|
inline |
countryCode ITS-S country code getter.
Definition at line 117 of file ParameterConfiguration.h.
References m_countryCode.
Referenced by Manager::Manager(), and Manager::updateGnAddr().
|
inline |
energyStorageType Energy storage type getter.
Definition at line 207 of file ParameterConfiguration.h.
References m_energyStorageType.
void ParameterConfiguration::getMacAddr | ( | ) |
getMacAddr Get MacAddr if itsGnLocalAddrConfMethod = 1 to create GnAddr
Definition at line 50 of file ParameterConfiguration.cpp.
References itsGnLocalAddrConfMethod_auto, m_itsGnLocalAddrConfMethod, and m_mid.
Referenced by ParameterConfiguration().
|
inline |
heightLonCarrLeft Height of the longitudinal carrier on the left side getter.
Definition at line 167 of file ParameterConfiguration.h.
References m_heightLonCarrLeft.
Referenced by fill_AlacarteContainer().
|
inline |
heightLonCarrRight Height of the longitudinal carrier on the right side getter.
Definition at line 172 of file ParameterConfiguration.h.
References m_heightLonCarrRight.
Referenced by fill_AlacarteContainer().
|
inline |
interface ITS-G5 interface name getter.
Definition at line 112 of file ParameterConfiguration.h.
References m_interface.
Referenced by GeoNet::InitRawSocket_send(), and ReceivePackets::receive().
|
inline |
itsGnGeoAreaLineForwarding Is the GN geo area line forwarding used?
Definition at line 122 of file ParameterConfiguration.h.
References m_itsGnGeoAreaLineForwarding.
Referenced by GeoNet::gacPacketProcessing(), and operator=().
|
inline |
itsGnGeoBroadcastForwardingAlgorithm GBC forwarding algorithm getter.
Definition at line 127 of file ParameterConfiguration.h.
References m_itsGnGeoBroadcastForwardingAlgorithm.
Referenced by GeoNet::checkBCFPB(), GeoNet::gbcPacketProcessing(), GeoNet::sendGAC(), and GeoNet::sendGBC().
|
inline |
itsGnGeoUnicastForwardingAlgorithm GUC forwarding algorithm getter.
Definition at line 132 of file ParameterConfiguration.h.
References m_itsGnGeoUnicastForwardingAlgorithm.
Referenced by GeoNet::checkUCFPB(), GeoNet::flushUCFPB(), GeoNet::gacPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::sendGAC(), and GeoNet::sendGUC().
|
inline |
itsGnLocalAddrConfMethod ITS GN-ADDR configuration method getter.
Definition at line 137 of file ParameterConfiguration.h.
References m_itsGnLocalAddrConfMethod.
Referenced by GeoNet::beaconPacketProcessing(), Manager::changeMID(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), Manager::Manager(), GeoNet::shbPacketProcessing(), GeoNet::tsbPacketProcessing(), and Manager::updateGnAddr().
|
inline |
itsGnSecurity Is the security layer used?
Definition at line 142 of file ParameterConfiguration.h.
References m_itsGnSecurity.
Referenced by GeoNet::basicHeaderProcessing(), GeoNet::GeoNet(), GeoNet::LSRequestPacketProcessing(), Manager::Manager(), GeoNet::send(), GeoNet::sendBeacon(), GeoNet::sendGAC(), GeoNet::sendGBC(), GeoNet::sendGUC(), GeoNet::sendLsRequest(), GeoNet::sendSHB(), and GeoNet::sendTSB().
|
inline |
maxRepetitionAdvancedContention Counter used for the Advance GBC forwarding algorithm getter.
Definition at line 224 of file ParameterConfiguration.h.
References m_maxRepetitionAdvancedContention.
Referenced by GeoNet::advancedForwarding().
|
inline |
mid MID getter.
Definition at line 101 of file ParameterConfiguration.h.
References m_mid.
Referenced by Manager::changeMID(), GeoNet::checkUCFPB(), GeoNet::flushUCFPB(), Manager::Manager(), ReceivePackets::receive(), GeoNet::send(), Manager::updateGnAddr(), and updateMID().
|
inline |
mid Specific byte of the MID getter.
i | The index of the byte. |
Definition at line 107 of file ParameterConfiguration.h.
References m_mid.
ParameterConfiguration & ParameterConfiguration::operator= | ( | const ParameterConfiguration & | other | ) |
operator= ParameterConfiguration affectation operator.
other | The ParameterConfiguration to affect. |
Definition at line 261 of file ParameterConfiguration.cpp.
References itsGnGeoAreaLineForwarding(), m_countryCode, m_energyStorageType, m_heightLonCarrLeft, m_heightLonCarrRight, m_interface, m_itsGnGeoAreaLineForwarding, m_itsGnGeoBroadcastForwardingAlgorithm, m_itsGnGeoUnicastForwardingAlgorithm, m_itsGnLocalAddrConfMethod, m_itsGnSecurity, m_mid, m_posCentMass, m_posFrontAx, m_positionOfPillars, m_posLonCarrLeft, m_posLonCarrRight, m_posPillar, m_trafficClass, m_turningRadius, m_vehicleLength, m_vehicleMass, m_vehicleWidth, and m_wheelBaseVehicle.
|
inline |
posCentMass Position of the center mass getter.
Definition at line 177 of file ParameterConfiguration.h.
References m_posCentMass.
Referenced by fill_AlacarteContainer().
|
inline |
posFrontAx Position of the front axis getter.
Definition at line 182 of file ParameterConfiguration.h.
References m_posFrontAx.
Referenced by fill_AlacarteContainer().
|
inline |
positionOfPillars Position of the pillars getter.
Definition at line 212 of file ParameterConfiguration.h.
References m_positionOfPillars.
Referenced by fill_AlacarteContainer().
PosPillar_t ParameterConfiguration::positionOfPillars | ( | int | i | ) | const |
positionOfPillars Position of a specific pillar getter.
i | The index of the specific piller. |
Definition at line 253 of file ParameterConfiguration.cpp.
References m_positionOfPillars, and PosPillar_unavailable.
|
inline |
posLonCarrLeft Position of the longitudinal carrier on the left side getter.
Definition at line 187 of file ParameterConfiguration.h.
References m_posLonCarrLeft.
Referenced by fill_AlacarteContainer().
|
inline |
posLonCarrRight Position of the longitudinal carrier on the right side getter.
Definition at line 192 of file ParameterConfiguration.h.
References m_posLonCarrRight.
Referenced by fill_AlacarteContainer().
void ParameterConfiguration::read | ( | ) |
read Configuration file reading.
Definition at line 74 of file ParameterConfiguration.cpp.
References asn_DEF_PositionOfPillars, asn_fprint(), ASN_SEQUENCE_ADD, HeightLonCarr_unavailable, itsGnGeoBroadcastForwardingAlgorithm_advanced, itsGnGeoUnicastForwardingAlgorithm_greedy, itsGnLocalAddrConfMethod_default, m_countryCode, m_energyStorageType, m_heightLonCarrLeft, m_heightLonCarrRight, m_interface, m_itsGnGeoAreaLineForwarding, m_itsGnGeoBroadcastForwardingAlgorithm, m_itsGnGeoUnicastForwardingAlgorithm, m_itsGnLocalAddrConfMethod, m_itsGnSecurity, m_maxRepetitionAdvancedContention, m_posCentMass, m_posFrontAx, m_positionOfPillars, m_posLonCarrLeft, m_posLonCarrRight, m_posPillar, m_trafficClass, m_turningRadius, m_vehicleLength, m_vehicleMass, m_vehicleWidth, m_wheelBaseVehicle, makeBitString(), PosCentMass_unavailable, PosFrontAx_unavailable, PosLonCarr_unavailable, TrafficClass::trafficClassID_otherDataTraffic, TurningRadius_unavailable, validate_unsigned_int(), VehicleLength::vehicleLengthConfidenceIndication, VehicleLengthConfidenceIndication_unavailable, VehicleLength::vehicleLengthValue, VehicleLengthValue_unavailable, VehicleMass_unavailable, VehicleWidth_unavailable, and WheelBaseVehicle_unavailable.
Referenced by ParameterConfiguration().
void ParameterConfiguration::readDebug | ( | ) |
readDebug Configuration printing.
Definition at line 212 of file ParameterConfiguration.cpp.
References TrafficClass::channelOffload(), m_countryCode, m_energyStorageType, m_heightLonCarrLeft, m_heightLonCarrRight, m_interface, m_itsGnGeoAreaLineForwarding, m_itsGnGeoBroadcastForwardingAlgorithm, m_itsGnGeoUnicastForwardingAlgorithm, m_itsGnLocalAddrConfMethod, m_itsGnSecurity, m_maxRepetitionAdvancedContention, m_mid, m_posCentMass, m_posFrontAx, m_positionOfPillars, m_posLonCarrLeft, m_posLonCarrRight, m_trafficClass, m_turningRadius, m_vehicleLength, m_vehicleMass, m_vehicleWidth, m_wheelBaseVehicle, printBitString(), TrafficClass::SCF(), TrafficClass::TCID(), VehicleLength::vehicleLengthConfidenceIndication, and VehicleLength::vehicleLengthValue.
|
inline |
trafficClass ITS-S traffic class getter.
Definition at line 147 of file ParameterConfiguration.h.
References m_trafficClass.
Referenced by GeoNet::LSRequestPacketProcessing(), GeoNet::sendBeacon(), and GeoNet::sendLsRequest().
|
inline |
turningRadius Vehicle turning radius getter.
Definition at line 197 of file ParameterConfiguration.h.
References m_turningRadius.
Referenced by fill_AlacarteContainer().
void ParameterConfiguration::updateMID | ( | uchar * | mid | ) |
updateMacAddr Get GnAddr from security layer if itsGnLocalGnAddrConfMethod = 2 or if DAD is invoked
Definition at line 68 of file ParameterConfiguration.cpp.
Referenced by Manager::updateGnAddr().
|
inline |
vehicleLength Vehicle length getter.
Definition at line 152 of file ParameterConfiguration.h.
References m_vehicleLength.
Referenced by caBasicService::collectMandatoryData_BasicVehicleContainerHighFrequency().
|
inline |
vehicleMass Vehicle mass getter.
Definition at line 162 of file ParameterConfiguration.h.
References m_vehicleMass.
Referenced by fill_AlacarteContainer().
|
inline |
vehicleWidth Vehicle width getter.
Definition at line 157 of file ParameterConfiguration.h.
References m_vehicleWidth.
Referenced by caBasicService::collectMandatoryData_BasicVehicleContainerHighFrequency().
|
inline |
wheelBaseVehicle Wheel base of the vehicle getter.
Definition at line 202 of file ParameterConfiguration.h.
References m_wheelBaseVehicle.
Referenced by fill_AlacarteContainer().
|
private |
ITS-S country code.
Definition at line 38 of file ParameterConfiguration.h.
Referenced by countryCode(), operator=(), read(), and readDebug().
|
private |
Energy storage type.
Definition at line 45 of file ParameterConfiguration.h.
Referenced by energyStorageType(), operator=(), read(), and readDebug().
|
private |
Height of the longitudinal carrier on the left side.
Definition at line 46 of file ParameterConfiguration.h.
Referenced by heightLonCarrLeft(), operator=(), read(), and readDebug().
|
private |
Height of the longitudinal carrier on the right side.
Definition at line 47 of file ParameterConfiguration.h.
Referenced by heightLonCarrRight(), operator=(), read(), and readDebug().
|
private |
ITS-G5 interface name.
Definition at line 37 of file ParameterConfiguration.h.
Referenced by interface(), operator=(), read(), and readDebug().
|
private |
Is the GN geo area line forwarding used?
Definition at line 39 of file ParameterConfiguration.h.
Referenced by itsGnGeoAreaLineForwarding(), operator=(), read(), and readDebug().
|
private |
GBC forwarding algorithm used.
Definition at line 40 of file ParameterConfiguration.h.
Referenced by itsGnGeoBroadcastForwardingAlgorithm(), operator=(), read(), and readDebug().
|
private |
GUC forwarding algorithm used.
Definition at line 41 of file ParameterConfiguration.h.
Referenced by itsGnGeoUnicastForwardingAlgorithm(), operator=(), read(), and readDebug().
|
private |
ITS GN-ADDR configuration method.
Definition at line 42 of file ParameterConfiguration.h.
Referenced by getMacAddr(), itsGnLocalAddrConfMethod(), operator=(), ParameterConfiguration(), read(), and readDebug().
|
private |
Is the security layer used?
Definition at line 43 of file ParameterConfiguration.h.
Referenced by itsGnSecurity(), operator=(), read(), and readDebug().
|
private |
Counter used for the Advance GBC forwarding algorithm.
Definition at line 61 of file ParameterConfiguration.h.
Referenced by maxRepetitionAdvancedContention(), read(), and readDebug().
|
private |
ITS-S MID.
Definition at line 36 of file ParameterConfiguration.h.
Referenced by getMacAddr(), mid(), operator=(), ParameterConfiguration(), readDebug(), and updateMID().
|
private |
Position of the center mass.
Definition at line 48 of file ParameterConfiguration.h.
Referenced by operator=(), posCentMass(), read(), and readDebug().
|
private |
Position of the front axis.
Definition at line 49 of file ParameterConfiguration.h.
Referenced by operator=(), posFrontAx(), read(), and readDebug().
|
private |
Positions of pillars.
Definition at line 51 of file ParameterConfiguration.h.
Referenced by operator=(), positionOfPillars(), read(), and readDebug().
|
private |
Definition at line 52 of file ParameterConfiguration.h.
Referenced by operator=(), posLonCarrLeft(), read(), and readDebug().
|
private |
Position of the longitudinal carrier on the left side.
Definition at line 53 of file ParameterConfiguration.h.
Referenced by operator=(), posLonCarrRight(), read(), and readDebug().
|
private |
List of positions of the pillars.
Definition at line 50 of file ParameterConfiguration.h.
Referenced by operator=(), and read().
|
private |
Position of the longitudinal carrier on the right side. ITS-S traffic class.
Definition at line 54 of file ParameterConfiguration.h.
Referenced by operator=(), read(), readDebug(), and trafficClass().
|
private |
ITS-S turning radius.
Definition at line 55 of file ParameterConfiguration.h.
Referenced by operator=(), read(), readDebug(), and turningRadius().
|
private |
Vehicle length.
Definition at line 56 of file ParameterConfiguration.h.
Referenced by operator=(), read(), readDebug(), and vehicleLength().
|
private |
Vehicle mass.
Definition at line 57 of file ParameterConfiguration.h.
Referenced by operator=(), read(), readDebug(), and vehicleMass().
|
private |
Vehicle width.
Definition at line 58 of file ParameterConfiguration.h.
Referenced by operator=(), read(), readDebug(), and vehicleWidth().
|
private |
Wheel base of the vehicle.
Definition at line 59 of file ParameterConfiguration.h.
Referenced by operator=(), read(), readDebug(), and wheelBaseVehicle().