Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+5
-5
@@ -28,7 +28,7 @@ HandlerEffector::HandlerEffector(AreaEffectSimulation::MainHandler *mainhandler,
|
||||
|
||||
bool HandlerEffector::init()
|
||||
{
|
||||
DEBUG_LOG() << "HandlerEffector::init";
|
||||
DEBUG_LOG(m_logger) << "HandlerEffector::init";
|
||||
|
||||
connect(m_ppmDtc.get(), &ParticipantManagement::Interface::Dtc::participantChanged,
|
||||
this, &HandlerEffector::onParticipantChanged);
|
||||
@@ -48,7 +48,7 @@ void HandlerEffector::createEffector(int participantId)
|
||||
{
|
||||
if (m_effectors.contains(participantId))
|
||||
return;
|
||||
DEBUG_LOG()<<"createEffector participantId:" << participantId;
|
||||
DEBUG_LOG(m_logger)<<"createEffector participantId:" << participantId;
|
||||
ObjectEffector* objectEffector = new ObjectEffector(m_mainHandler, this);
|
||||
objectEffector->init(participantId);
|
||||
|
||||
@@ -58,17 +58,17 @@ void HandlerEffector::createEffector(int participantId)
|
||||
// TODO Wird aufgerufen, wenn zur Laufzeit ein Effektor geloescht wird. (Topic?)
|
||||
void HandlerEffector::deleteEffector(int participantId)
|
||||
{
|
||||
DEBUG_LOG()<<"deleteEffector participantId:" << participantId;
|
||||
DEBUG_LOG(m_logger)<<"deleteEffector participantId:" << participantId;
|
||||
delete m_effectors[participantId];
|
||||
m_effectors.remove(participantId);
|
||||
}
|
||||
|
||||
void HandlerEffector::onParticipantChanged(const ParticipantManagement::Participant &data, DataModification modType)
|
||||
{
|
||||
//DEBUG_LOG()<<"onParticipantChanged participantId:" << data.id();
|
||||
//DEBUG_LOG(m_logger)<<"onParticipantChanged participantId:" << data.id();
|
||||
if (modType == DataModification::eRemoved)
|
||||
{
|
||||
DEBUG_LOG() << "m_participantsOutsideMap.remove participantId: " << data.id();
|
||||
DEBUG_LOG(m_logger) << "m_participantsOutsideMap.remove participantId: " << data.id();
|
||||
if (m_effectors.contains(data.id()))
|
||||
deleteEffector(data.id());
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user