net.sf.groovydice
Class SimpleRandomNumberGenerator

java.lang.Object
  extended by net.sf.groovydice.SimpleRandomNumberGenerator
All Implemented Interfaces:
groovy.lang.GroovyObject

public class SimpleRandomNumberGenerator
extends Object
implements groovy.lang.GroovyObject

Simple random number generation implementation that rely on the Java's Random class do to its job.

Since:
1.3
Version:
1
Author:
Daniel F. Martins

Constructor Summary
SimpleRandomNumberGenerator()
           
 
Method Summary
 Random getGenerator()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getNext()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setGenerator(Random value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setNext(Object value)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRandomNumberGenerator

public SimpleRandomNumberGenerator()
Method Detail

getGenerator

public Random getGenerator()

setGenerator

public void setGenerator(Random value)

getNext

public Object getNext()

setNext

public void setNext(Object value)

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2008-2010 Daniel F. Martins. All Rights Reserved.