*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
*/
private $helperInstance = null;
- /**
- * Instance of an RNG
- */
- private $rngInstance = null;
-
/**
* Protected constructor
*
*/
protected final function initializeRandomNumberGenerator (FrameworkInterface $extraInstance = null) {
// Get an RNG from factory
- $this->rngInstance = ObjectFactory::createObjectByConfiguredName('rng_class', array($extraInstance));
- }
-
- /**
- * Getter for RNG instance
- *
- * @return $rngInstance An instance of a random number generator (RNG)
- */
- public final function getRngInstance () {
- return $this->rngInstance;
+ $this->setRngInstance(ObjectFactory::createObjectByConfiguredName('rng_class', array($extraInstance)));
}
/**