|
|||||||||
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
edu.cuny.cat.market.charging.AdaptiveChargingPolicy
public abstract class AdaptiveChargingPolicy
An adaptive charging policy that uses learners to determine charges..
If a learner for some type of charge is not provided, the charging becomes fixed at the initial rate.
Parameters
base.registration double |
(initial charge on registration) |
base.registration.learner name of class, inheriting MimicryLearner |
(learner that adapts registration charge; can be null) |
base.registration.scale double |
(level of perturbation on registration charge) |
base.information double |
(initial charge on information) |
base.information.learner name of class, inheriting MimicryLearner |
(learner that adapts information charge; can be null) |
base.information.scale double |
(level of perturbation on information charge) |
base.shout double |
(initial charge on shout) |
base.shout.learner name of class, inheriting MimicryLearner |
(learner that adapts shout charge; can be null) |
base.shout.scale double |
(level of perturbation on shout charge) |
base.transaction double |
(initial charge on transaction) |
base.transaction.learner name of class, inheriting MimicryLearner |
(learner that adapts transaction charge; can be null) |
base.transaction.scale double |
(level of perturbation on transaction charge) |
base.profit double [0,1] |
(initial charge on profit) |
base.profit.learner name of class, inheriting MimicryLearner |
(learner that adapts profit charge; can be null) |
base.profit.scale double |
(level of perturbation on profit charge) |
Default Base
adaptive_charging |
Field Summary | |
---|---|
protected double[] |
initialFees
the initial charges to impose |
protected edu.cuny.ai.learning.MimicryLearner[] |
learners
learning algorithms to adapt different types of charges |
static java.lang.String |
P_DEF_BASE
|
static java.lang.String |
P_LEARNER
|
static java.lang.String |
P_SCALE
|
protected cern.jet.random.AbstractContinousDistribution[] |
perturbations
small random amounts added to adapted charges |
protected double[] |
scales
the speed to adapt charges |
Fields inherited from class edu.cuny.cat.market.charging.ChargingPolicy |
---|
FEE_TYPES, fees, FLAT, FRACTIONAL, INFORMATION_INDEX, MAXES, MINES, P_FEES, PROFIT_INDEX, REGISTRATION_INDEX, SHOUT_INDEX, TRANSACTION_INDEX |
Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy |
---|
auctioneer |
Constructor Summary | |
---|---|
AdaptiveChargingPolicy()
|
Method Summary | |
---|---|
void |
initialize()
initializes after parameters are set via either setters, constructors, or parameter files. |
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 edu.cuny.cat.market.charging.ChargingPolicy |
---|
adjustFees, getFees, getInformationFee, getProfitFee, getRegistrationFee, getShoutFee, getTransactionFee |
Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy |
---|
eventOccurred, getAuctioneer, setAuctioneer |
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_LEARNER
public static final java.lang.String P_SCALE
protected edu.cuny.ai.learning.MimicryLearner[] learners
protected cern.jet.random.AbstractContinousDistribution[] perturbations
protected double[] scales
protected double[] initialFees
Constructor Detail |
---|
public AdaptiveChargingPolicy()
Method Detail |
---|
public void setup(edu.cuny.config.param.ParameterDatabase parameters, edu.cuny.config.param.Parameter base)
setup
in interface edu.cuny.config.param.Parameterizable
setup
in class AuctioneerPolicy
public void initialize()
AuctioneerPolicy
initialize
in class AuctioneerPolicy
public void reset()
AuctioneerPolicy
reset
in interface edu.cuny.obj.Resetable
reset
in class AuctioneerPolicy
public java.lang.String toString()
toString
in class ChargingPolicy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |