Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+35
-35
@@ -18,14 +18,14 @@ DdsHandler::DdsHandler(int domainId, int exerciseId)
|
||||
, m_participantEventId(0)
|
||||
, m_exerciseId(exerciseId)
|
||||
{
|
||||
DEBUG_LOG() << "DdsHandler(" << domainId << ") for partition: " << m_ddsConnector->getDefaultPartition();
|
||||
DEBUG_LOG(m_logger) << "DdsHandler(" << domainId << ") for partition: " << m_ddsConnector->getDefaultPartition();
|
||||
}
|
||||
|
||||
bool DdsHandler::init(const QStringList &qosFileList)
|
||||
{
|
||||
if (!m_ddsConnector->init(qosFileList))
|
||||
{
|
||||
ERROR_LOG() << "Error initializing dds connections - aborting";
|
||||
ERROR_LOG(m_logger) << "Error initializing dds connections - aborting";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -60,24 +60,24 @@ bool DdsHandler::init(const QStringList &qosFileList)
|
||||
!m_ftcTab->enableSendParticipantBeStillWarning() ||
|
||||
!m_ftcTab->enableDemandInit())
|
||||
{
|
||||
ERROR_LOG() << "Could not enable SendCesHit";
|
||||
ERROR_LOG(m_logger) << "Could not enable SendCesHit";
|
||||
return false;
|
||||
}
|
||||
|
||||
m_ftcBld = Buildings::Interface::Ftc::create(m_ddsConnector);
|
||||
if (!m_ftcBld->enableSendCesHitOnBuilding())
|
||||
{
|
||||
ERROR_LOG() << "Could not enable SendCesHitOnBuilding";
|
||||
ERROR_LOG(m_logger) << "Could not enable SendCesHitOnBuilding";
|
||||
return false;
|
||||
}
|
||||
if (!m_ftcBld->enableSendCesHit3DonBuilding())
|
||||
{
|
||||
ERROR_LOG() << "Could not enable SendCesHit3DonBuilding";
|
||||
ERROR_LOG(m_logger) << "Could not enable SendCesHit3DonBuilding";
|
||||
return false;
|
||||
}
|
||||
if (!m_ftcBld->enableSetBuildingStates())
|
||||
{
|
||||
ERROR_LOG() << "Could not enable SetBuildingStates";
|
||||
ERROR_LOG(m_logger) << "Could not enable SetBuildingStates";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ bool DdsHandler::init(const QStringList &qosFileList)
|
||||
if (!m_dtcIsm->enableMainFootprint() ||
|
||||
!m_dtcIsm->enableMainStructureElement())
|
||||
{
|
||||
ERROR_LOG() << "Could not enable ISM data topics";
|
||||
ERROR_LOG(m_logger) << "Could not enable ISM data topics";
|
||||
return false;
|
||||
} // if
|
||||
m_dtcIsm->waitForHistoricalDataMainFootprint(20000);
|
||||
@@ -106,16 +106,16 @@ bool DdsHandler::init(const QStringList &qosFileList)
|
||||
!m_dtcAes->enableDangerArea() ||
|
||||
!m_dtcAes->enableDusSingleMine())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize AES data topics";
|
||||
ERROR_LOG(m_logger) << "Could not initialize AES data topics";
|
||||
return false;
|
||||
}
|
||||
|
||||
DEBUG_LOG() << "create FTC AES";
|
||||
DEBUG_LOG(m_logger) << "create FTC AES";
|
||||
m_ftcAes = AreaEffectSimulation::Interface::Ftc::create(m_ddsConnector);
|
||||
DEBUG_LOG() << "init FTC AES";
|
||||
DEBUG_LOG(m_logger) << "init FTC AES";
|
||||
if (!m_ftcAes->enableAll())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize AreaEffectSimulation enableType function topic";
|
||||
ERROR_LOG(m_logger) << "Could not initialize AreaEffectSimulation enableType function topic";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -125,71 +125,71 @@ bool DdsHandler::init(const QStringList &qosFileList)
|
||||
|
||||
if (!m_dtcPdm->enableChargeType())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize ProjectDataManagement enableChargeType data topic client";
|
||||
ERROR_LOG(m_logger) << "Could not initialize ProjectDataManagement enableChargeType data topic client";
|
||||
return false;
|
||||
}
|
||||
|
||||
m_dtcPpm = ParticipantManagement::Interface::Dtc::create(m_ddsConnector);
|
||||
if (!m_dtcPpm->enableDynamicParticipantData())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize ParticipantManagement enableDynamicParticipantData data topic client";
|
||||
ERROR_LOG(m_logger) << "Could not initialize ParticipantManagement enableDynamicParticipantData data topic client";
|
||||
return false;
|
||||
}
|
||||
if (!m_dtcPpm->enableParticipantPosition())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize ParticipantManagement enableParticipantPosition data topic client";
|
||||
ERROR_LOG(m_logger) << "Could not initialize ParticipantManagement enableParticipantPosition data topic client";
|
||||
return false;
|
||||
}
|
||||
if (!m_dtcPpm->enableParticipant())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize ParticipantManagement enableParticipant data topic client";
|
||||
ERROR_LOG(m_logger) << "Could not initialize ParticipantManagement enableParticipant data topic client";
|
||||
return false;
|
||||
}
|
||||
if (!m_dtcPpm->enableType())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize ParticipantManagement enableType data topic client";
|
||||
ERROR_LOG(m_logger) << "Could not initialize ParticipantManagement enableType data topic client";
|
||||
return false;
|
||||
}
|
||||
|
||||
DEBUG_LOG() << "create FTC PPM";
|
||||
DEBUG_LOG(m_logger) << "create FTC PPM";
|
||||
m_ftcPpm = ParticipantManagement::Interface::Ftc::create(m_ddsConnector);
|
||||
DEBUG_LOG() << "init FTC PPM";
|
||||
DEBUG_LOG(m_logger) << "init FTC PPM";
|
||||
if (!m_ftcPpm->enableAll())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize ParticipantManagement enableType function topic";
|
||||
ERROR_LOG(m_logger) << "Could not initialize ParticipantManagement enableType function topic";
|
||||
return false;
|
||||
}
|
||||
|
||||
m_dtsTab = TrainingAreaBase::Interface::Dts::create(m_ddsConnector);
|
||||
if (!m_dtsTab->enableEquipmentPosition())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize TrainingAreaBase enableEquipmentPosition data topic server";
|
||||
ERROR_LOG(m_logger) << "Could not initialize TrainingAreaBase enableEquipmentPosition data topic server";
|
||||
return false;
|
||||
}
|
||||
if (!m_ftcTab->enableSendParticipantBlockedArea())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize TrainingAreaBase enableSendParticipantBlockedArea function";
|
||||
ERROR_LOG(m_logger) << "Could not initialize TrainingAreaBase enableSendParticipantBlockedArea function";
|
||||
return false;
|
||||
}
|
||||
|
||||
m_dtcBld = Buildings::Interface::Dtc::create(m_ddsConnector);
|
||||
if (!m_dtcBld->enableBuildingState())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize Buildings data topic client";
|
||||
ERROR_LOG(m_logger) << "Could not initialize Buildings data topic client";
|
||||
return false;
|
||||
}
|
||||
|
||||
m_dtcTab = TrainingAreaBase::Interface::Dtc::create(m_ddsConnector);
|
||||
if (!m_dtcTab->enableGeopairingData())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize TrainingAreaBase data topic client";
|
||||
ERROR_LOG(m_logger) << "Could not initialize TrainingAreaBase data topic client";
|
||||
return false;
|
||||
}
|
||||
|
||||
m_dtcMdm = MeteoDataManagement::Interface::Dtc::create(m_ddsConnector);
|
||||
if (!m_dtcMdm->enableMeteoData())
|
||||
{
|
||||
ERROR_LOG() << "Could not initialize MeteoData data topic client";
|
||||
ERROR_LOG(m_logger) << "Could not initialize MeteoData data topic client";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -227,56 +227,56 @@ int DdsHandler::equipNo2ParticipantId(const int equipmentNumber) const
|
||||
double DdsHandler::chargeTypeRadius(const AreaEffectSimulation::ChargeStruct &chargeStruct)
|
||||
{
|
||||
const double radius = m_dtcPdm->impactRadius(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId());
|
||||
DEBUG_LOG() << "chargeTypeRadius = " << radius;
|
||||
DEBUG_LOG(m_logger) << "chargeTypeRadius = " << radius;
|
||||
return radius;
|
||||
} // getRadiusOfMunition
|
||||
|
||||
double DdsHandler::chargeHeight(const AreaEffectSimulation::ChargeStruct &chargeStruct)
|
||||
{
|
||||
const double height = m_dtcPdm->height(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId());
|
||||
DEBUG_LOG() << "chargeHeight = " << height;
|
||||
DEBUG_LOG(m_logger) << "chargeHeight = " << height;
|
||||
return height;
|
||||
}
|
||||
|
||||
bool DdsHandler::isSmartChargeType(const AreaEffectSimulation::ChargeStruct &chargeStruct)
|
||||
{
|
||||
const bool isSmart = m_dtcPdm->isSmart(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId());
|
||||
DEBUG_LOG() << "isSmartChargeType = " << isSmart;
|
||||
DEBUG_LOG(m_logger) << "isSmartChargeType = " << isSmart;
|
||||
return isSmart;
|
||||
} // isSmartType
|
||||
|
||||
bool DdsHandler::isSmoke(const AreaEffectSimulation::ChargeStruct &chargeStruct)
|
||||
{
|
||||
const bool isSmoke = m_dtcPdm->isSmoke(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId());
|
||||
DEBUG_LOG() << "isSmoke = " << isSmoke;
|
||||
DEBUG_LOG(m_logger) << "isSmoke = " << isSmoke;
|
||||
return isSmoke;
|
||||
} // isSmoke
|
||||
|
||||
bool DdsHandler::isLaserGuidable(const AreaEffectSimulation::ChargeStruct &chargeStruct)
|
||||
{
|
||||
const bool isLaserGuidable = m_dtcPdm->isLaserGuidable(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId());
|
||||
DEBUG_LOG() << "isLaserGuidable = " << isLaserGuidable;
|
||||
DEBUG_LOG(m_logger) << "isLaserGuidable = " << isLaserGuidable;
|
||||
return isLaserGuidable;
|
||||
}
|
||||
|
||||
bool DdsHandler::isJamming(const AreaEffectSimulation::ChargeStruct &chargeStruct)
|
||||
{
|
||||
const bool isJamming = m_dtcPdm->isJamming(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId());
|
||||
DEBUG_LOG() << "isJamming = " << isJamming;
|
||||
DEBUG_LOG(m_logger) << "isJamming = " << isJamming;
|
||||
return isJamming;
|
||||
}
|
||||
|
||||
bool DdsHandler::isDus(const AreaEffectSimulation::ChargeStruct &chargeStruct)
|
||||
{
|
||||
const bool isDus = m_dtcPdm->mineClass(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId())== AreaEffectSimulation::MineClass::Concrete;
|
||||
DEBUG_LOG() << "isDus = " << isDus;
|
||||
DEBUG_LOG(m_logger) << "isDus = " << isDus;
|
||||
return isDus;
|
||||
}
|
||||
|
||||
bool DdsHandler::isAtMine(const AreaEffectSimulation::ChargeStruct &chargeStruct)
|
||||
{
|
||||
const bool isAtMine = m_dtcPdm->isAtMine(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId());
|
||||
DEBUG_LOG() << "isAtMine = " << isAtMine;
|
||||
DEBUG_LOG(m_logger) << "isAtMine = " << isAtMine;
|
||||
return isAtMine;
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@ ProjectDataManagement::VolatilityType DdsHandler::volatilityTypeId(const AreaEff
|
||||
const ProjectDataManagement::VolatilityType volatilityType= m_dtcPdm->volatilityTypeId(chargeStruct.chargeTypeId(),
|
||||
chargeStruct.igniterTypeId(),
|
||||
chargeStruct.igniterFunctionId());
|
||||
DEBUG_LOG() << "volatilityType=" << volatilityType;
|
||||
DEBUG_LOG(m_logger) << "volatilityType=" << volatilityType;
|
||||
return volatilityType;
|
||||
}
|
||||
|
||||
@@ -329,14 +329,14 @@ int32_t DdsHandler::getLegacyIdFromChargeTypeId(const AreaEffectSimulation::Char
|
||||
{
|
||||
int32_t legacyId = 0;
|
||||
legacyId = m_dtcPdm->getChargeTypeIgniterTypeIgniterFunction(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId()).chargeLegacyId();
|
||||
DEBUG_LOG() << "legacyId = " << legacyId;
|
||||
DEBUG_LOG(m_logger) << "legacyId = " << legacyId;
|
||||
return legacyId;
|
||||
}
|
||||
|
||||
int DdsHandler::searchRadius(const AreaEffectSimulation::ChargeStruct &chargeStruct)
|
||||
{
|
||||
const int searchRadius = m_dtcPdm->searchRadius(chargeStruct.chargeTypeId(), chargeStruct.igniterTypeId(), chargeStruct.igniterFunctionId());
|
||||
DEBUG_LOG() << "searchRadius = " << searchRadius;
|
||||
DEBUG_LOG(m_logger) << "searchRadius = " << searchRadius;
|
||||
return searchRadius;
|
||||
} // searchRadius
|
||||
|
||||
|
||||
Reference in new issue
Block a user