|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.liv.auction.agent.FixedValuer
A valuation policy in which we maintain a fixed private valuation independent of time or auction.
| Field Summary | |
static java.lang.String |
P_VALUE
|
protected double |
value
|
| Constructor Summary | |
FixedValuer()
|
|
FixedValuer(double value)
|
|
| Method Summary | |
void |
consumeUnit(Auction auction)
Recalculate valuation after consumption of the commodity being traded in the given auction. |
double |
determineValue(Auction auction)
Determine the current valuation of commodity in the given auction. |
void |
eventOccurred(AuctionEvent event)
Recalculate valuation(s) in response to an auction event. |
void |
reset()
Reinitialise our state to the original settings. |
void |
setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
Initialise this object from a parameter database. |
void |
setValue(double value)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected double value
public static final java.lang.String P_VALUE
| Constructor Detail |
public FixedValuer()
public FixedValuer(double value)
| Method Detail |
public void setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
Parameterizable
setup in interface Parameterizablepublic double determineValue(Auction auction)
ValuationPolicy
determineValue in interface ValuationPolicypublic void consumeUnit(Auction auction)
ValuationPolicy
consumeUnit in interface ValuationPolicypublic void eventOccurred(AuctionEvent event)
ValuationPolicy
eventOccurred in interface ValuationPolicypublic void reset()
Resetable
reset in interface Resetablepublic void setValue(double value)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||