/** * 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; }
/** * Initialize the actor. Initializes its counter. * * @exception IllegalActionException If thrown by the super class. */ public void initialize() throws IllegalActionException { super.initialize(); _counter = 0; }
public void initialize() throws IllegalActionException { super.initialize(); log.debug("--- intitialize"); }