* Executes the task
*
* @return void
- * @todo 0%
*/
public function executeTask () {
// First we check if we already have an instance (which will happen at any later cyclus)
$producerInstance = Registry::getRegistry()->getInstance('test_unit_producer');
}
- // We can now use that producer instance for generating some test units
- $producerInstance->produceUnits();
+ // Get the current cruncher state from registry
+ $stateInstance = Registry::getRegistry()->getInstance('cruncher')->getStateInstance();
+
+ // Debug message
+ //* DEBUG: */ $this->debugOutput('TASK: Executing stateInstance=' . $stateInstance->__toString());
+
+ // We can now invoke that state instance and pass our producer instance for generating some test units
+ $stateInstance->executeState($producerInstance);
}
}