net.sourceforge.jasa.agent.strategy
Class PureSimpleStrategy
java.lang.Object
AbstractStrategy
net.sourceforge.jasa.agent.strategy.AbstractTradingStrategy
net.sourceforge.jasa.agent.strategy.FixedQuantityStrategyImpl
net.sourceforge.jasa.agent.strategy.FixedDirectionStrategy
net.sourceforge.jasa.agent.strategy.PureSimpleStrategy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, FixedQuantityStrategy, TradingStrategy, MarketEventListener
public class PureSimpleStrategy
- extends FixedDirectionStrategy
- implements java.io.Serializable
A trading strategy in which we bid a constant mark-up on the agent's private
value.
Parameters
base.delta
double |
(the markup over our private valuation to bid for) |
-
-
Field Summary |
protected double |
margin
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
margin
protected double margin
PureSimpleStrategy
public PureSimpleStrategy(AbstractTradingAgent agent,
double margin,
int quantity)
PureSimpleStrategy
public PureSimpleStrategy()
protoClone
public java.lang.Object protoClone()
- Overrides:
protoClone
in class AbstractTradingStrategy
modifyShout
public boolean modifyShout(Order shout)
- Overrides:
modifyShout
in class FixedDirectionStrategy
onRoundClosed
public void onRoundClosed(Market auction)
setMargin
public void setMargin(double margin)