mam.utility
Class MonteCarloCollection


public class MonteCarloCollection


Field Summary
 (package private) Collectionm_collection
           
 (package private) static Randomm_randomGenerator
           
 (package private) doublem_totalStrength
           

Constructor Summary
MonteCarloCollection()
           
MonteCarloCollection(Collection collection)
           

Method Summary
 voidadd(MonteCarloElement e)
           
 CollectiondrawNElements(int numberOfElementsDesired)
           
 ObjectdrawOneElement()
           
 (package private) voidsetCollection(Collection collection)
           

Field Detail

m_collection

Collection m_collection

m_randomGenerator

static Random m_randomGenerator

m_totalStrength

double m_totalStrength
Constructor Detail

MonteCarloCollection

public MonteCarloCollection()

MonteCarloCollection

public MonteCarloCollection(Collection collection)
Method Detail

add

public void add(MonteCarloElement e)

drawNElements

public Collection drawNElements(int numberOfElementsDesired)

drawOneElement

public Object drawOneElement()

setCollection

void setCollection(Collection collection)