|
|||||||||
| 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.strategy.AbstractStrategy
edu.cuny.cat.trader.strategy.FixedQuantityStrategyImpl
edu.cuny.cat.trader.strategy.TruthTellingStrategy
public class TruthTellingStrategy
A trading strategy that always bids at its private value.
| Field Summary |
|---|
| Fields inherited from class edu.cuny.cat.trader.strategy.FixedQuantityStrategyImpl |
|---|
P_DEF_BASE, quantity |
| Fields inherited from class edu.cuny.cat.trader.strategy.AbstractStrategy |
|---|
agent, currentShout, MIN_PRICE_DIFFERENCE |
| Constructor Summary | |
|---|---|
TruthTellingStrategy()
|
|
TruthTellingStrategy(AbstractTradingAgent agent)
|
|
| Method Summary | |
|---|---|
boolean |
modifyShout(Shout.MutableShout shout)
Modify the price and quantity of the given shout according to this strategy. |
| Methods inherited from class edu.cuny.cat.trader.strategy.FixedQuantityStrategyImpl |
|---|
determineQuantity, getQuantity, setQuantity, setup, toString |
| Methods inherited from class edu.cuny.cat.trader.strategy.AbstractStrategy |
|---|
eventOccurred, getAgent, initialize, modifyShout, protoClone, requiresAuctionHistory, reset, setAgent |
| 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 |
| Methods inherited from interface edu.cuny.cat.trader.strategy.Strategy |
|---|
modifyShout, requiresAuctionHistory, setAgent |
| Methods inherited from interface edu.cuny.obj.Prototypeable |
|---|
protoClone |
| Methods inherited from interface edu.cuny.obj.Resetable |
|---|
reset |
| Methods inherited from interface edu.cuny.cat.event.AuctionEventListener |
|---|
eventOccurred |
| Constructor Detail |
|---|
public TruthTellingStrategy(AbstractTradingAgent agent)
public TruthTellingStrategy()
| Method Detail |
|---|
public boolean modifyShout(Shout.MutableShout shout)
AbstractStrategy
modifyShout in class FixedQuantityStrategyImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||