edu.cuny.cat.market
Class AuctioneerPolicy
java.lang.Object
  
edu.cuny.cat.market.AuctioneerPolicy
- All Implemented Interfaces: 
 - AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
 
- Direct Known Subclasses: 
 - ChargingPolicy, Helper, MarketClearingCondition, PricingPolicy, QuotingPolicy, ShoutAcceptingPolicy, ShoutEngine, SubscribingPolicy
 
public abstract class AuctioneerPolicy
- extends java.lang.Object
- implements AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
  
A class representing a policy that
 GenericDoubleAuctioneer may use on some aspect.
 
 NOTE: An auctioneer policy is resetable and is reset by the auctioneer
 automatically after a game is over. Any policy that extends this abstract
 policy framework should listen to game events only for obtaining information
 and should not use the events for the purpose of resetting after a game.
- Version:
 
  - $Revision: 1.4 $
 
- Author:
 
  - Jinzhong Niu
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
auctioneer
protected Auctioneer auctioneer
AuctioneerPolicy
public AuctioneerPolicy()
setup
public void setup(edu.cuny.config.param.ParameterDatabase parameters,
                  edu.cuny.config.param.Parameter base)
- Specified by:
 setup in interface edu.cuny.config.param.Parameterizable
 
 
initialize
public void initialize()
- initializes after parameters are set via either setters, constructors, or
 parameter files.
 
 
 
reset
public void reset()
- resets the state to be the same as the policy is created and initialized.
- Specified by:
 reset in interface edu.cuny.obj.Resetable
 
 
 
eventOccurred
public void eventOccurred(AuctionEvent event)
- Specified by:
 eventOccurred in interface AuctionEventListener
 
 
getAuctioneer
public Auctioneer getAuctioneer()
 
 
setAuctioneer
public void setAuctioneer(Auctioneer auctioneer)
 
 
toString
public java.lang.String toString()
- Overrides:
 toString in class java.lang.Object