uk.ac.liv.auction.stats
Class CombiAuctionReport

java.lang.Object
  extended byuk.ac.liv.auction.stats.CombiAuctionReport
All Implemented Interfaces:
AuctionEventListener, AuctionReport, Parameterizable, Resetable

public class CombiAuctionReport
extends java.lang.Object
implements AuctionReport, Parameterizable, Resetable

A report that combines several different reports.

Parameters

base.n
int >= 1
(the number of different loggers to configure)

Version:
$Revision: 1.2 $
Author:
Steve Phelps

Field Summary
protected  RoundRobinAuction auction
           
static java.lang.String P_NUMLOGGERS
           
protected  java.util.List reports
           
 
Constructor Summary
CombiAuctionReport()
           
CombiAuctionReport(java.util.List reports)
           
 
Method Summary
 void addReport(AuctionReport report)
          Add a new logger
 void eventOccurred(AuctionEvent event)
           
 java.util.Map getVariables()
          Returns a Map of all of the variables that are produced in the report.
 void produceUserOutput()
          Produce the final report for the user.
 java.util.Iterator reportIterator()
           
 void reset()
          Reinitialise our state to the original settings.
 void setAuction(RoundRobinAuction auction)
          Specify the auction to be used when generating the report.
 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, toString, wait, wait, wait
 

Field Detail

reports

protected java.util.List reports

auction

protected RoundRobinAuction auction

P_NUMLOGGERS

public static final java.lang.String P_NUMLOGGERS
See Also:
Constant Field Values
Constructor Detail

CombiAuctionReport

public CombiAuctionReport(java.util.List reports)

CombiAuctionReport

public CombiAuctionReport()
Method Detail

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

addReport

public void addReport(AuctionReport report)
Add a new logger


reset

public void reset()
Description copied from interface: Resetable
Reinitialise our state to the original settings.

Specified by:
reset in interface Resetable

produceUserOutput

public void produceUserOutput()
Description copied from interface: AuctionReport
Produce the final report for the user. Implementors can do whatever they see fit, for example by writing a report on stdout, or they may choose to do nothing.

Specified by:
produceUserOutput in interface AuctionReport

reportIterator

public java.util.Iterator reportIterator()

getVariables

public java.util.Map getVariables()
Description copied from interface: AuctionReport
Returns a Map of all of the variables that are produced in the report. The Map maps variables, represented by objects of type ReportVariable, onto values, which may be of any class. If no variables are produced by this report then an empty Map is returned.

Specified by:
getVariables in interface AuctionReport
See Also:
ReportVariable

eventOccurred

public void eventOccurred(AuctionEvent event)
Specified by:
eventOccurred in interface AuctionEventListener

setAuction

public void setAuction(RoundRobinAuction auction)
Description copied from interface: AuctionReport
Specify the auction to be used when generating the report.

Specified by:
setAuction in interface AuctionReport