uk.ac.liv.auction.agent
Class IntervalValuer
java.lang.Object
uk.ac.liv.auction.agent.FixedValuer
uk.ac.liv.auction.agent.IntervalValuer
- All Implemented Interfaces:
- AuctionEventListener, Parameterizable, Resetable, java.io.Serializable, ValuationPolicy
- Direct Known Subclasses:
- BuyerIntervalValuer, SellerIntervalValuer
- public abstract class IntervalValuer
- extends FixedValuer
Agents configured with this valuation policy will receive a unique private
value from a common set of values starting at minValue and
incrementing by step as each agent is assigned a valuation
at agent setup time. This is useful for quickly specifying supply or
demand curves with a constant "slope" (step).
- Version:
- $Revision: 1.4 $
- Author:
- Steve Phelps
- See Also:
- Serialized Form
|
Method Summary |
protected abstract boolean |
firstValue()
|
protected abstract double |
getMinValue()
|
protected abstract double |
getNextValue()
|
protected abstract double |
getStep()
|
protected abstract void |
setFirstValue(boolean firstValue)
|
protected abstract void |
setMinValue(double value)
|
protected abstract void |
setNextValue(double value)
|
protected abstract void |
setStep(double step)
|
void |
setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
Initialise this object from a parameter database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
P_MINVALUE
public static final java.lang.String P_MINVALUE
- See Also:
- Constant Field Values
P_STEP
public static final java.lang.String P_STEP
- See Also:
- Constant Field Values
IntervalValuer
public IntervalValuer()
setup
public void setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
- Description copied from interface:
Parameterizable
- Initialise this object from a parameter database.
- Specified by:
setup in interface Parameterizable- Overrides:
setup in class FixedValuer
setMinValue
protected abstract void setMinValue(double value)
getMinValue
protected abstract double getMinValue()
setStep
protected abstract void setStep(double step)
getStep
protected abstract double getStep()
setNextValue
protected abstract void setNextValue(double value)
getNextValue
protected abstract double getNextValue()
firstValue
protected abstract boolean firstValue()
setFirstValue
protected abstract void setFirstValue(boolean firstValue)