Class NetWorthCalculator

  extended by jfreerails.world.top.TransactionAggregator
      extended by jfreerails.controller.NetWorthCalculator

public class NetWorthCalculator
extends TransactionAggregator

A TransactionAggregator that calculates the networth of a player by totalling the value of their assets.


Field Summary
Fields inherited from class jfreerails.world.top.TransactionAggregator
monetaryTotals, principal, runningTotal, w
Constructor Summary
NetWorthCalculator(ReadOnlyWorld w, FreerailsPrincipal principal)
Method Summary
protected  boolean condition(int transactionID)
          Returns true if we should count the specified transactions.
Methods inherited from class jfreerails.world.top.TransactionAggregator
calculateValue, calculateValues, getTimes, incrementRunningTotal, setTimes, setTotalsArrayLength, storeRunningTotal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public NetWorthCalculator(ReadOnlyWorld w,
                          FreerailsPrincipal principal)
Method Detail


protected boolean condition(int transactionID)
Description copied from class: TransactionAggregator
Returns true if we should count the specified transactions.

Specified by:
condition in class TransactionAggregator