void CalamaresApplication::onPluginsReady() { initJobQueue(); m_mainwindow = new CalamaresWindow(); //also creates ViewManager connect( Calamares::ViewManager::instance(), &Calamares::ViewManager::phaseChangeRequested, this, &CalamaresApplication::startPhase ); startPhase( Calamares::Prepare ); }
void actualSort( const TestInfo *ti, Data *data ) { PhaseHandle sortingP, sequentialSortP; srand( time(0) ); // init phase "computation computationP = startPhase( ti, "computation" ); stopPhase( ti, computationP ); sortingP = startPhase( ti, "sorting" ); scatter( ti, data ); // scattering resumePhase( ti, computationP ); sequentialSortP = startPhase( ti, "sequential sort" ); sequentialSort( ti, data ); stopPhase( ti, sequentialSortP ); stopPhase( ti, computationP ); stopPhase( ti, sortingP ); gather( ti, data ); // gathering }
void QGCSkyeTestTimerWidget::clickedPushButtonStart() { /* Activate checkbox if it has not been set yet */ if (ui->checkBoxUseTimer->isChecked() == false) { ui->checkBoxUseTimer->toggle(); } /* Update period time. This will also be needed for inverse direction (if inverse direction is activated) */ msecPeriod = 1000 * ui->doubleSpinBoxPeriod->value(); msecPause = 1000 * ui->doubleSpinBoxPause->value(); /* Start forward phase: */ startPhase(StateForwardStart, 0); }
Engine::Engine() { cout << "Assignment: creating engine and game state" << endl; gameState = GameState("Person"); // maybe ask the user for his name? startPhase(); }
void PVT::startPhaseExp(prioBcMsg *m) { startPhase(m); }
void QGCSkyeTestTimerWidget::timerTimeout() { updateLabel(); // decide wether to update shotsRemaining: switch(currentState) { case StateContinous: case StateStopped: break; case StateForwardStart: case StateForward: case StatePause: case StateReverse: if (shotsRemaining > 0) { shotsRemaining--; } break; } // update state: if (shotsRemaining == 0) { switch(currentState) { case StateContinous: case StateStopped: // stay in this state. break; case StateForwardStart: startPhase(StateForward, msecPeriod); break; case StateForward: if (ui->checkBoxInvertMovement->isChecked()) { if (msecPause > 0) { // goto next phase: startPhase(StatePause, msecPause); } else { startPhase(StateReverse, msecPeriod); } } else { // goto stopped state: currentState = StateStopped; // emit randomize command: if (ui->checkBoxRandomize->isChecked()) { emit randomizeInputs(); } } break; case StatePause: // goto next phase: startPhase(StateReverse, msecPeriod); break; case StateReverse: currentState = StateStopped; // emit randomize command: if (ui->checkBoxRandomize->isChecked()) { emit randomizeInputs(); } break; } } // decide what to emit: switch(currentState) { case StateContinous: emit emitValues( 1.0); break; case StateForwardStart: case StateStopped: emit emitValues( 0.0); break; case StateForward: emit emitValues( 1.0); break; case StatePause: // emit small negative value to make the acutators move: emit emitValues(-0.001); break; case StateReverse: emit emitValues(-1.0); break; } }