Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+15
-15
@@ -45,31 +45,31 @@ bool FireAutomaton::init(int32_t time, TimeType type, int32_t rounds, const QVec
|
||||
{
|
||||
if(m_state != State::Stopped && m_state != State::Uninitialized)
|
||||
{
|
||||
ERROR_LOG() << " init failed - fire automaton must be in state unitialized or stopped.";
|
||||
ERROR_LOG(m_logger) << " init failed - fire automaton must be in state unitialized or stopped.";
|
||||
return false;
|
||||
}
|
||||
|
||||
if(time < 0)
|
||||
{
|
||||
ERROR_LOG() << " init failed - time invalid.";
|
||||
ERROR_LOG(m_logger) << " init failed - time invalid.";
|
||||
return false;
|
||||
}
|
||||
|
||||
if(effectorIds.isEmpty())
|
||||
{
|
||||
ERROR_LOG() << " init failed - effector Ids invalid.";
|
||||
ERROR_LOG(m_logger) << " init failed - effector Ids invalid.";
|
||||
return false;
|
||||
}
|
||||
|
||||
if(rounds <= 0)
|
||||
{
|
||||
ERROR_LOG() << " init failed - number of rounds invalid.";
|
||||
ERROR_LOG(m_logger) << " init failed - number of rounds invalid.";
|
||||
return false;
|
||||
}
|
||||
|
||||
if(pattern.isEmpty())
|
||||
{
|
||||
ERROR_LOG() << " init failed - invalid fire pattern.";
|
||||
ERROR_LOG(m_logger) << " init failed - invalid fire pattern.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -80,13 +80,13 @@ bool FireAutomaton::init(int32_t time, TimeType type, int32_t rounds, const QVec
|
||||
|
||||
if(!readPattern(pattern))
|
||||
{
|
||||
ERROR_LOG() << " init failed - firing pattern invalid.";
|
||||
ERROR_LOG(m_logger) << " init failed - firing pattern invalid.";
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!calculateSchedule(rounds))
|
||||
{
|
||||
ERROR_LOG() << " init failed - firing schedule invalid.";
|
||||
ERROR_LOG(m_logger) << " init failed - firing schedule invalid.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ bool FireAutomaton::start()
|
||||
{
|
||||
if(m_state != State::Stopped)
|
||||
{
|
||||
ERROR_LOG() << " start failed - fire automaton must be in state stopped.";
|
||||
ERROR_LOG(m_logger) << " start failed - fire automaton must be in state stopped.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ bool FireAutomaton::resume()
|
||||
{
|
||||
if(m_state != State::Paused)
|
||||
{
|
||||
ERROR_LOG() << " resume failed - fire automaton must be in state paused.";
|
||||
ERROR_LOG(m_logger) << " resume failed - fire automaton must be in state paused.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ bool FireAutomaton::pause()
|
||||
{
|
||||
if(m_state != State::Running)
|
||||
{
|
||||
ERROR_LOG() << " pause failed - fire automaton must be in state running.";
|
||||
ERROR_LOG(m_logger) << " pause failed - fire automaton must be in state running.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ bool FireAutomaton::performStep()
|
||||
{
|
||||
if(m_state != State::Stopped && m_state != State::Stepping)
|
||||
{
|
||||
ERROR_LOG() << " performStep failed - fire automaton must be in state stepping or stopped.";
|
||||
ERROR_LOG(m_logger) << " performStep failed - fire automaton must be in state stepping or stopped.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ bool FireAutomaton::readPattern(const QString& pattern)
|
||||
|
||||
if(!patternElementFromString(element, patternElement))
|
||||
{
|
||||
WARNING_LOG() << " skipped invalid firing pattern elements.";
|
||||
WARNING_LOG(m_logger) << " skipped invalid firing pattern elements.";
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -290,7 +290,7 @@ bool FireAutomaton::readPattern(const QString& pattern)
|
||||
}
|
||||
else
|
||||
{
|
||||
ERROR_LOG() << " a pattern may contain at most one fill element.";
|
||||
ERROR_LOG(m_logger) << " a pattern may contain at most one fill element.";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -300,7 +300,7 @@ bool FireAutomaton::readPattern(const QString& pattern)
|
||||
|
||||
if(m_pattern.empty())
|
||||
{
|
||||
ERROR_LOG() << " error occured reading firing pattern.";
|
||||
ERROR_LOG(m_logger) << " error occured reading firing pattern.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ bool FireAutomaton::calculateSchedule(int32_t rounds)
|
||||
|
||||
if(rounds > 0)
|
||||
{
|
||||
ERROR_LOG() << " scheduling error - fire pattern does not provide sufficient slots to schedule all rounds. " << rounds;
|
||||
ERROR_LOG(m_logger) << " scheduling error - fire pattern does not provide sufficient slots to schedule all rounds. " << rounds;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user