예제 #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");
  }