uk.ac.liv.auction.agent
Class EquilibriumPriceStrategy
java.lang.Object
uk.ac.liv.auction.agent.AbstractStrategy
uk.ac.liv.auction.agent.FixedQuantityStrategyImpl
uk.ac.liv.auction.agent.EquilibriumPriceStrategy
- All Implemented Interfaces:
- AuctionEventListener, java.lang.Cloneable, FixedQuantityStrategy, Parameterizable, Prototypeable, Resetable, java.io.Serializable, Strategy
- public class EquilibriumPriceStrategy
- extends FixedQuantityStrategyImpl
- implements java.io.Serializable, Prototypeable
A strategy which will bid at the true equilibrium price, if profitable,
or bid truthfully otherwise. Although this is not a realistic strategy,
it can be useful for testing and control experiments.
- Version:
- $Revision: 1.2 $
- Author:
- Steve Phelps
- See Also:
- Serialized Form
|
Method Summary |
void |
endOfRound(Auction auction)
|
boolean |
modifyShout(Shout.MutableShout shout)
Modify the price and quantity of the given shout according to this
strategy. |
java.lang.Object |
protoClone()
|
void |
setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
Initialise this object from a parameter database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EquilibriumPriceStrategy
public EquilibriumPriceStrategy(AbstractTradingAgent agent,
double price,
int quantity)
EquilibriumPriceStrategy
public EquilibriumPriceStrategy()
setup
public void setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
- Description copied from interface:
Parameterizable
- Initialise this object from a parameter database.
- Specified by:
setup in interface Parameterizable- Overrides:
setup in class FixedQuantityStrategyImpl
protoClone
public java.lang.Object protoClone()
- Specified by:
protoClone in interface Prototypeable- Overrides:
protoClone in class AbstractStrategy
modifyShout
public boolean modifyShout(Shout.MutableShout shout)
- Description copied from class:
AbstractStrategy
- Modify the price and quantity of the given shout according to this
strategy.
- Overrides:
modifyShout in class FixedQuantityStrategyImpl
endOfRound
public void endOfRound(Auction auction)
- Specified by:
endOfRound in class AbstractStrategy