uk.ac.liv.auction.stats
Class ComplexityReport

java.lang.Object
  extended byuk.ac.liv.auction.stats.AbstractAuctionReport
      extended byuk.ac.liv.auction.stats.ComplexityReport
All Implemented Interfaces:
AuctionEventListener, AuctionReport, Parameterizable, Resetable, java.io.Serializable

public class ComplexityReport
extends AbstractAuctionReport
implements Resetable, java.io.Serializable, Parameterizable

Version:
$Revision: 1.2 $
Author:
Steve Phelps
See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList agents
           
protected  DataWriter complexitySequence
           
protected  CummulativeDistribution globalMargin
           
protected  java.util.HashMap independentHistograms
           
protected  java.util.HashMap jointHistograms
           
protected  int numStates
           
static java.lang.String P_NUMSTATES
           
static java.lang.String P_WRITER
           
 
Fields inherited from class uk.ac.liv.auction.stats.AbstractAuctionReport
auction
 
Constructor Summary
ComplexityReport()
           
 
Method Summary
protected  void buildAgentList()
           
 double calculateTotalIndependenceDistance()
           
 void eventOccurred(AuctionEvent event)
           
 java.util.Map getVariables()
          Returns a Map of all of the variables that are produced in the report.
protected  double independence(AbstractTradingAgent agent1, AbstractTradingAgent agent2)
           
 void initialise()
           
protected  double markup(AbstractTradingAgent agent)
           
 void produceUserOutput()
          Produce the final report for the user.
 void reset()
          Reinitialise our state to the original settings.
 void roundClosed(AuctionEvent event)
           
 void setup(ec.util.ParameterDatabase parameters, ec.util.Parameter base)
          Initialise this object from a parameter database.
protected  int state(AbstractTradingAgent agent)
           
protected  int state(double markup, AbstractTradingAgent agent)
           
protected  void updateIndependentHistograms()
           
protected  void updateJointHistograms()
           
 void updateShoutLog(ShoutPlacedEvent event)
           
 
Methods inherited from class uk.ac.liv.auction.stats.AbstractAuctionReport
setAuction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numStates

protected int numStates

globalMargin

protected CummulativeDistribution globalMargin

independentHistograms

protected java.util.HashMap independentHistograms

jointHistograms

protected java.util.HashMap jointHistograms

complexitySequence

protected DataWriter complexitySequence

agents

protected java.util.ArrayList agents

P_WRITER

public static final java.lang.String P_WRITER
See Also:
Constant Field Values

P_NUMSTATES

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

ComplexityReport

public ComplexityReport()
Method Detail

reset

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

Specified by:
reset in interface Resetable

initialise

public void initialise()

eventOccurred

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

updateShoutLog

public void updateShoutLog(ShoutPlacedEvent event)

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

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

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

roundClosed

public void roundClosed(AuctionEvent event)

calculateTotalIndependenceDistance

public double calculateTotalIndependenceDistance()

updateJointHistograms

protected void updateJointHistograms()

updateIndependentHistograms

protected void updateIndependentHistograms()

buildAgentList

protected void buildAgentList()

independence

protected double independence(AbstractTradingAgent agent1,
                              AbstractTradingAgent agent2)

state

protected int state(AbstractTradingAgent agent)

state

protected int state(double markup,
                    AbstractTradingAgent agent)

markup

protected double markup(AbstractTradingAgent agent)