| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cuny.cat.market.AuctioneerPolicy
edu.cuny.cat.market.pricing.PricingPolicy
edu.cuny.cat.market.pricing.KPricingPolicy
edu.cuny.cat.market.pricing.DiscriminatoryPricingPolicy
public class DiscriminatoryPricingPolicy
A pricing policy in which we set the transaction price in the interval between the matched prices as determined by the parameter k.
| Field Summary | 
|---|
| Fields inherited from class edu.cuny.cat.market.pricing.KPricingPolicy | 
|---|
DEFAULT_K, k, P_DEF_BASE, P_K | 
| Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy | 
|---|
auctioneer | 
| Constructor Summary | |
|---|---|
DiscriminatoryPricingPolicy()
 | 
|
DiscriminatoryPricingPolicy(double k)
 | 
|
| Method Summary | |
|---|---|
 double | 
determineClearingPrice(Shout bid,
                       Shout ask,
                       MarketQuote clearingQuote)
 | 
| Methods inherited from class edu.cuny.cat.market.pricing.KPricingPolicy | 
|---|
getK, kInterval, setK, setup, toString | 
| Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy | 
|---|
eventOccurred, getAuctioneer, initialize, reset, setAuctioneer | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public DiscriminatoryPricingPolicy()
public DiscriminatoryPricingPolicy(double k)
| Method Detail | 
|---|
public double determineClearingPrice(Shout bid,
                                     Shout ask,
                                     MarketQuote clearingQuote)
determineClearingPrice in class PricingPolicy
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||