|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
edu.cuny.cat.trader.marketselection.AbstractMarketSelectionStrategy
edu.cuny.cat.trader.marketselection.RandomMarketSelectionStrategy
public class RandomMarketSelectionStrategy
A market selection strategy that randomly chooses a specialist from the active ones in the game every day without considering which one is better.
| Field Summary | |
|---|---|
cern.jet.random.Uniform |
distribution
|
| Fields inherited from class edu.cuny.cat.trader.marketselection.AbstractMarketSelectionStrategy |
|---|
activeMarkets, agent, currentMarketIndex, marketIndices, markets |
| Constructor Summary | |
|---|---|
RandomMarketSelectionStrategy()
|
|
| Method Summary | |
|---|---|
void |
selectMarket()
selects an active specialist randomly based on a uniform distribution from the given list. |
| Methods inherited from class edu.cuny.cat.trader.marketselection.AbstractMarketSelectionStrategy |
|---|
addActiveSpecialist, eventOccurred, getCurrenMarket, hasValidCurrentMarket, initialize, registerMarket, reset, setAgent, setup, setupMarkets, toString |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public cern.jet.random.Uniform distribution
| Constructor Detail |
|---|
public RandomMarketSelectionStrategy()
| Method Detail |
|---|
public void selectMarket()
selectMarket in class AbstractMarketSelectionStrategy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||