]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/cruncher/init/class_CruncherInitState.php
Updated 'core'.
[hub.git] / application / hub / main / states / cruncher / init / class_CruncherInitState.php
index 749ae73f6e54290e1262d8e03e871927d74a5b46..8c1938590e4949c01bee3ce1424105c9cfffc142 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A Init cruncher state class
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
+ * @copyright  Copyright (c) 2011 - 2014 Cruncher Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -38,16 +38,12 @@ class CruncherInitState extends BaseCruncherState implements Stateable {
        /**
         * Creates an instance of this class
         *
-        * @param       $cruncherInstance       An instance of a CruncherHelper class
         * @return      $stateInstance  An instance of a Stateable class
         */
-       public final static function createCruncherInitState (CruncherHelper $cruncherInstance) {
+       public final static function createCruncherInitState () {
                // Get new instance
                $stateInstance = new CruncherInitState();
 
-               // Set the cruncher instance
-               $stateInstance->setCruncherInstance($cruncherInstance);
-
                // Return the prepared instance
                return $stateInstance;
        }
@@ -59,8 +55,8 @@ class CruncherInitState extends BaseCruncherState implements Stateable {
         * @return      void
         */
        public function executeState (Executor $executorInstance) {
-               // Now prepare the unit production to maybe become 'virgin' or 'active' if work/test units are there
-               $executorInstance->prepareUnitProduction($this);
+               // Initialize the unit production to maybe become 'virgin' or 'active' if work/test units are there
+               $executorInstance->initUnitProduction($this);
        }
 
        /**
@@ -71,7 +67,7 @@ class CruncherInitState extends BaseCruncherState implements Stateable {
         */
        public function encryptedMessageGenerated () {
                // Change the state now to 'virgin'
-               CruncherStateFactory::createCruncherStateInstanceByName('virgin', $this->getCruncherInstance());
+               CruncherStateFactory::createCruncherStateInstanceByName('virgin');
        }
 }