コード例 #1
0
 /**
  * Initialize the random number generator with the seed, if it has been given. A seed of zero is
  * interpreted to mean that no seed is specified. In such cases, a seed based on the current time
  * and this instance of a RandomSource is used to be fairly sure that two identical sequences will
  * not be returned.
  *
  * @exception IllegalActionException If the parent class throws it.
  */
 @Override
 public void initialize() throws IllegalActionException {
   super.initialize();
   if (_random == null || ((BooleanToken) resetOnEachRun.getToken()).booleanValue()) {
     _createGenerator();
   }
   _needNew = true;
 }
コード例 #2
0
ファイル: DummySource.java プロジェクト: ptII/ptII
 /**
  * Initialize the actor. Initializes its counter.
  *
  * @exception IllegalActionException If thrown by the super class.
  */
 public void initialize() throws IllegalActionException {
   super.initialize();
   _counter = 0;
 }
コード例 #3
0
  public void initialize() throws IllegalActionException {

    super.initialize();
    log.debug("--- intitialize");
  }