net.sourceforge.jasa.agent.valuation
Class RandomScheduleValuer
java.lang.Object
net.sourceforge.jasa.agent.valuation.AbstractValuationPolicy
net.sourceforge.jasa.agent.valuation.AbstractRandomValuer
net.sourceforge.jasa.agent.valuation.RandomValuer
net.sourceforge.jasa.agent.valuation.RandomScheduleValuer
- All Implemented Interfaces:
- java.io.Serializable, ValuationPolicy, MarketEventListener
public class RandomScheduleValuer
- extends RandomValuer
- implements java.io.Serializable
A valuation policy which specifies a randomly-generated series of valuations
for each unit of commodity.
- See Also:
- Serialized Form
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RandomScheduleValuer
public RandomScheduleValuer(double min,
double max,
RandomEngine prng)
RandomScheduleValuer
public RandomScheduleValuer()
consumeUnit
public void consumeUnit(Market auction)
- Description copied from interface:
ValuationPolicy
- Recalculate valuation after consumption of the commodity being traded in
the given market.
- Specified by:
consumeUnit
in interface ValuationPolicy
- Overrides:
consumeUnit
in class AbstractRandomValuer
subscribeToEvents
public void subscribeToEvents(EventScheduler scheduler)
- Overrides:
subscribeToEvents
in class RandomValuer
eventOccurred
public void eventOccurred(SimEvent event)
- Overrides:
eventOccurred
in class RandomValuer