Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mrd.jelly.distribution
Class Uniform  view Uniform download Uniform.java

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.mrd.jelly.TagBase
          extended byorg.mrd.jelly.distribution.DistributionTagBase
              extended byorg.mrd.jelly.distribution.Uniform
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class Uniform
extends DistributionTagBase

This is a random number generation class that produces pseudo-random doubles acording to a configured Normal Distribution. It uses the cern.jet.random.Normal Class to support this distribution. The distribution can be configured by supplying a mean and a standard devation. A seed can also be provided.


Field Summary
private  int max
          Holds value of property max.
private  int min
          Holds value of property min.
 
Fields inherited from class org.mrd.jelly.distribution.DistributionTagBase
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
Uniform()
           
 
Method Summary
 void doEndTag(org.apache.commons.jelly.XMLOutput xMLOutput)
          Simply put, it is where the execution of the tag occurs.
 void doStartTag(org.apache.commons.jelly.XMLOutput xMLOutput)
          Used by Ant to check if the appropriate attributes have been filled out.
 int getMax()
          Getter for property max.
 int getMin()
          Getter for property min.
 void setMax(int max)
          Setter for property max.
 void setMin(int min)
          Setter for property min.
 
Methods inherited from class org.mrd.jelly.distribution.DistributionTagBase
getEngine, getRandomElement, getVar, setEngine, setVar
 
Methods inherited from class org.mrd.jelly.TagBase
doBody, doTag
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

private int min
Holds value of property min.


max

private int max
Holds value of property max.

Constructor Detail

Uniform

public Uniform()
Method Detail

doStartTag

public void doStartTag(org.apache.commons.jelly.XMLOutput xMLOutput)
                throws java.lang.Exception
Used by Ant to check if the appropriate attributes have been filled out.


doEndTag

public void doEndTag(org.apache.commons.jelly.XMLOutput xMLOutput)
              throws java.lang.Exception
Simply put, it is where the execution of the tag occurs.


getMin

public int getMin()
Getter for property min.


setMin

public void setMin(int min)
Setter for property min.


getMax

public int getMax()
Getter for property max.


setMax

public void setMax(int max)
Setter for property max.