|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cuny.cat.valuation.ValuationPolicy
public abstract class ValuationPolicy
A commodity valuation policy for determining private values for traders.
Field Summary | |
---|---|
protected double |
value
The current valuation. |
Constructor Summary | |
---|---|
ValuationPolicy()
|
Method Summary | |
---|---|
void |
eventOccurred(AuctionEvent event)
Recalculate valuation(s) in response to an auction event. |
double |
getValue()
Determine the current valuation of commodity in the given auction. |
void |
reset()
resets the valuation policy so that the private value can be generated if applicable. |
void |
setValue(double value)
sets the private 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
Constructor Detail |
---|
public ValuationPolicy()
Method Detail |
---|
public double getValue()
public void setValue(double value)
value
- public void reset()
reset
in interface edu.cuny.obj.Resetable
public void eventOccurred(AuctionEvent event)
eventOccurred
in interface AuctionEventListener
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |