Package samer.maths

Class VGenerator

  • java.lang.Object
    • Viewable
      • samer.maths.VGenerator
  • All Implemented Interfaces:
    Generator


    public class VGenerator
    extends Viewable
    implements Generator
    A Viewable random number generator. The Generator itself must expose any parameters it has, but this object allows the user to control what class of generator to use.
    • Constructor Detail

      • VGenerator

        public VGenerator(java.lang.String nm)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • VGenerator

        public VGenerator(java.lang.String nm,
                          Generator g)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • next

        public double next()
        Specified by:
        next in interface Generator
      • next

        public void next(double[] x)
        Specified by:
        next in interface Generator
      • dispose

        public void dispose()
        Specified by:
        dispose in interface Generator
      • getGenerator

        public Generator getGenerator()
      • setGenerator

        public void setGenerator(Generator g)
      • getViewer

        public Viewer getViewer()
      • getCommands

        public void getCommands(Registry r)
      • execute

        public void execute(java.lang.String cmd,
                            Environment env)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception