net.sourceforge.jasa.market.rules
Class UniformPricingPolicy
java.lang.Object
net.sourceforge.jasa.market.rules.KPricingPolicy
net.sourceforge.jasa.market.rules.UniformPricingPolicy
- All Implemented Interfaces:
- java.io.Serializable, PricingPolicy
public class UniformPricingPolicy
- extends KPricingPolicy
- implements java.io.Serializable
A pricing policy in which we set the transaction price in the interval
between the ask quote and the bid quote as determined by the parameter k. The
pricing policy is uniform in the sense that individual bid and ask prices are
ignored, thus all agents performing transactions in the clearing operation
will pay the same price.
- See Also:
- Serialized Form
-
-
Fields inherited from class net.sourceforge.jasa.market.rules.KPricingPolicy |
k |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UniformPricingPolicy
public UniformPricingPolicy()
UniformPricingPolicy
public UniformPricingPolicy(double k)
determineClearingPrice
public double determineClearingPrice(Order bid,
Order ask,
MarketQuote clearingQuote)
- Specified by:
determineClearingPrice
in interface PricingPolicy