edu.cuny.cat.market.charging
Class CombiChargingPolicy
java.lang.Object
edu.cuny.cat.market.AuctioneerPolicy
edu.cuny.cat.market.charging.ChargingPolicy
edu.cuny.cat.market.charging.CombiChargingPolicy
- All Implemented Interfaces:
- AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
- Direct Known Subclasses:
- SerialChargingPolicy
public abstract class CombiChargingPolicy
- extends ChargingPolicy
A charging policy that combines multiple child charging policies.
Parameters
base.n
int |
(the number of child charging policies) |
base.i
int |
(the parameter base of the ith child charging policies) |
- Version:
- $Revision: 1.23 $
- Author:
- Jinzhong Niu
Fields inherited from class edu.cuny.cat.market.charging.ChargingPolicy |
FEE_TYPES, fees, FLAT, FRACTIONAL, INFORMATION_INDEX, MAXES, MINES, P_DEF_BASE, P_FEES, PROFIT_INDEX, REGISTRATION_INDEX, SHOUT_INDEX, TRANSACTION_INDEX |
Method Summary |
void |
reset()
resets the state to be the same as the policy is created and initialized. |
void |
setup(edu.cuny.config.param.ParameterDatabase parameters,
edu.cuny.config.param.Parameter base)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
P_NUM
public static final java.lang.String P_NUM
- See Also:
- Constant Field Values
policies
protected ChargingPolicy[] policies
CombiChargingPolicy
public CombiChargingPolicy()
setup
public void setup(edu.cuny.config.param.ParameterDatabase parameters,
edu.cuny.config.param.Parameter base)
- Specified by:
setup
in interface edu.cuny.config.param.Parameterizable
- Overrides:
setup
in class AuctioneerPolicy
reset
public void reset()
- Description copied from class:
AuctioneerPolicy
- resets the state to be the same as the policy is created and initialized.
- Specified by:
reset
in interface edu.cuny.obj.Resetable
- Overrides:
reset
in class AuctioneerPolicy
toString
public java.lang.String toString()
- Overrides:
toString
in class ChargingPolicy