| 
|||||||||
| 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.charging.ChargingPolicy
public abstract class ChargingPolicy
A charging policy determines how much a market charges.
Currently, 5 different types of charges are supported, flat charge on registration (participation in a market), flat charge on information on market activities, flat charge on shouts, flat charge on transactions, and fractional charge on transaction profit.
Default Base
| charging | 
| Field Summary | |
|---|---|
static int[] | 
FEE_TYPES
types of the fees a specialist may charge, being FLAT or
 FRACTIONAL | 
protected  double[] | 
fees
current charges  | 
static int | 
FLAT
type of fee charged flatly  | 
static int | 
FRACTIONAL
type of fee charged at a fraction of another value  | 
static int | 
INFORMATION_INDEX
index of information fee in P_FEES. | 
static double[] | 
MAXES
maximum values for different types of fees  | 
static double[] | 
MINES
minimum values for different types of fees  | 
static java.lang.String | 
P_DEF_BASE
 | 
static java.lang.String[] | 
P_FEES
 | 
static int | 
PROFIT_INDEX
index of profit fee in P_FEES. | 
static int | 
REGISTRATION_INDEX
index of registration fee in P_FEES. | 
static int | 
SHOUT_INDEX
index of shout fee in P_FEES. | 
static int | 
TRANSACTION_INDEX
index of transaction fee in P_FEES. | 
| Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy | 
|---|
auctioneer | 
| Constructor Summary | |
|---|---|
ChargingPolicy()
 | 
|
| Method Summary | |
|---|---|
static boolean | 
adjustFees(double[] fees)
 | 
 double[] | 
getFees()
 | 
 double | 
getInformationFee()
 | 
 double | 
getProfitFee()
 | 
 double | 
getRegistrationFee()
 | 
 double | 
getShoutFee()
 | 
 double | 
getTransactionFee()
 | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy | 
|---|
eventOccurred, getAuctioneer, initialize, reset, setAuctioneer, setup | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String P_DEF_BASE
public static final java.lang.String[] P_FEES
public static final int REGISTRATION_INDEX
P_FEES.
public static final int INFORMATION_INDEX
P_FEES.
public static final int SHOUT_INDEX
P_FEES.
public static final int TRANSACTION_INDEX
P_FEES.
public static final int PROFIT_INDEX
P_FEES.
public static final int FLAT
public static final int FRACTIONAL
public static final double[] MAXES
public static final double[] MINES
public static final int[] FEE_TYPES
FLAT or
 FRACTIONAL
protected double[] fees
| Constructor Detail | 
|---|
public ChargingPolicy()
| Method Detail | 
|---|
public double[] getFees()
public double getRegistrationFee()
public double getInformationFee()
public double getShoutFee()
public double getTransactionFee()
public double getProfitFee()
public static boolean adjustFees(double[] fees)
public java.lang.String toString()
toString in class AuctioneerPolicy
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||