edu.cuny.cat.stat
Class ResourceReport

java.lang.Object
  extended by edu.cuny.cat.stat.ResourceReport
All Implemented Interfaces:
AuctionEventListener, GameReport, edu.cuny.stat.Report<AuctionEvent>, java.util.EventListener

public class ResourceReport
extends java.lang.Object
implements GameReport

A report collecting resource consumption information, including memory use, etc.

Report variables

memory.max the max amount of memory that can be allocated to the VM.
memory.total the total amount of memory allocated to the VM.
memory.free the amount of free memory available to the VM.
memory.used the amount of memory currently used by the VM.

Version:
$Revision: 1.7 $
Author:
Jinzhong Niu

Field Summary
static java.lang.String FREE
           
protected  int freeMemory
           
protected static int KILO
           
protected  edu.cuny.stat.LoggingController logController
           
static java.lang.String MAX
           
protected  int maxMemory
           
static java.lang.String MEMORY
           
static java.lang.String TOTAL
           
protected  int totalMemory
           
static java.lang.String USED
           
protected  int usedMemory
           
 
Fields inherited from interface edu.cuny.cat.stat.GameReport
ACCEPTED, ASK, BID, CONVERGENCE_COEFFICIENT, EFFICIENCY, EQUILIBRIUM, FEE, Formatter, GLOBAL, MARKETSHARE, MEAN, MIN, PLACED, PRICE, PROFIT, PROFIT_DISPERSION, QUANTITY, SCORE, SHOUT, SPECIALIST, STDEV, TRADER, TRANSACTION, TRANSACTIONRATE, VALUE
 
Constructor Summary
ResourceReport()
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
           
 java.util.Map<edu.cuny.stat.ReportVariable,?> getVariables()
           
 void produceUserOutput()
           
 void recordMemoryUse()
           
 void reportMemoryUse()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KILO

protected static final int KILO
See Also:
Constant Field Values

MEMORY

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

MAX

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

TOTAL

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

USED

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

FREE

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

maxMemory

protected int maxMemory

totalMemory

protected int totalMemory

freeMemory

protected int freeMemory

usedMemory

protected int usedMemory

logController

protected edu.cuny.stat.LoggingController logController
Constructor Detail

ResourceReport

public ResourceReport()
Method Detail

getVariables

public java.util.Map<edu.cuny.stat.ReportVariable,?> getVariables()

eventOccurred

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

recordMemoryUse

public void recordMemoryUse()

reportMemoryUse

public void reportMemoryUse()

produceUserOutput

public void produceUserOutput()
Specified by:
produceUserOutput in interface edu.cuny.stat.Report<AuctionEvent>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object