|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.liv.auction.agent.AbstractStrategy
uk.ac.liv.auction.agent.FixedQuantityStrategyImpl
An abstract implementation of FixedQuantityStrategy.
Parameters
| base.quantity int >= 0 |
(the quantity to bid for in each auction round) | |||||||||
| Field Summary |
| Fields inherited from class uk.ac.liv.auction.agent.AbstractStrategy |
agent, auction, currentShout |
| Constructor Summary | |
FixedQuantityStrategyImpl()
|
|
FixedQuantityStrategyImpl(AbstractTradingAgent agent)
|
|
| Method Summary | |
int |
determineQuantity(Auction auction)
|
int |
getQuantity()
|
boolean |
modifyShout(Shout.MutableShout shout)
Modify the price and quantity of the given shout according to this strategy. |
void |
setQuantity(int quantity)
Specify the quantity to bid for. |
void |
setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
Initialise this object from a parameter database. |
| Methods inherited from class uk.ac.liv.auction.agent.AbstractStrategy |
endOfRound, eventOccurred, getAgent, initialise, modifyShout, protoClone, reset, setAgent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.liv.auction.agent.Strategy |
modifyShout, setAgent |
| Methods inherited from interface uk.ac.liv.util.Prototypeable |
protoClone |
| Methods inherited from interface uk.ac.liv.util.Resetable |
reset |
| Methods inherited from interface uk.ac.liv.auction.core.AuctionEventListener |
eventOccurred |
| Constructor Detail |
public FixedQuantityStrategyImpl(AbstractTradingAgent agent)
public FixedQuantityStrategyImpl()
| Method Detail |
public void setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
Parameterizable
setup in interface Parameterizablepublic void setQuantity(int quantity)
FixedQuantityStrategy
setQuantity in interface FixedQuantityStrategypublic int getQuantity()
public int determineQuantity(Auction auction)
determineQuantity in interface Strategypublic boolean modifyShout(Shout.MutableShout shout)
AbstractStrategy
modifyShout in class AbstractStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||