Class ColtRandomSource

    • Field Detail

      • generatorClass

        public SharedParameter generatorClass
        The low-level random number generator (RNG) class name. This is a string that defaults to "DRand". Below are possible values for this parameter and links to pages that define the meaning of the parameter. This is a "shared parameter", which means that changing this parameter in any one actor will cause a similar change to be applied to all other Colt actors within the same top level (unless this is in a library).
      • "DRand" (Definition)
      • "MersenneTwister (MT19937)" (Definition)
      • "Ranecu"" (Definition)
      • "Ranlux" (Definition)
      • "Ranmar" (Definition)
      • _randomNumberGenerator

        protected edu.cornell.lassp.houle.RngPack.RandomElement _randomNumberGenerator
        The low-level random number generator.
    • Method Detail

      • attributeChanged

        public void attributeChanged​(Attribute attribute)
                              throws IllegalActionException
        If the attribute is generatorClass then create the base random number generator.
        Overrides:
        attributeChanged in class RandomSource
        Parameters:
        attribute - The attribute that changed.
        Throws:
        IllegalActionException - If the change is not acceptable to this container (not thrown in this base class).
      • _createdNewRandomNumberGenerator

        protected abstract void _createdNewRandomNumberGenerator()
        Method that is called after _randomNumberGenerator is changed.