Class Bernoulli

    • Constructor Detail

      • Bernoulli

        public Bernoulli​(Bernoulli actor)
        Construct a Bernoulli helper.
        Parameters:
        actor - the associated actor
    • Method Detail

      • getSharedCode

        public java.util.Set getSharedCode()
                                    throws IllegalActionException
        Generate shared code. Read from Bernoulli.c, replace macros with their values and return the processed code string.
        Overrides:
        getSharedCode in class RandomSource
        Returns:
        The processed code string.
        Throws:
        IllegalActionException - If the code stream encounters an error in processing the specified code block(s).
      • getHeaderFiles

        public java.util.Set getHeaderFiles()
                                     throws IllegalActionException
        Get the files needed by the code generated for the Bernoulli actor.
        Overrides:
        getHeaderFiles in class RandomSource
        Returns:
        A set of Strings that are names of the files needed by the code generated for the Bernoulli actor.
        Throws:
        IllegalActionException - Not Thrown in this subclass.