hoplugins.transfers.vo
Class TransferTotals

java.lang.Object
  extended byhoplugins.transfers.vo.TransferTotals

public class TransferTotals
extends java.lang.Object

Value Object representing totals information for a selection of transfers.

Author:
Boy van der Werf

Constructor Summary
TransferTotals()
           
 
Method Summary
static TransferTotals calculateTotals(java.util.List transfers)
          Calculates the totals based on a list of transfers.
 int getAmountBuy()
          Gets the number of BUY transfers
 int getAmountSell()
          Gets the number of SELL transfers
 double getBuyPriceAvg()
          Gets the average price for BUY transfers
 int getBuyPriceTotal()
          Gets the total price for BUY transfers
 double getBuyTsiAvg()
          Gets the average TSI value for BUY transfers
 int getBuyTsiTotal()
          Gets the total TSI value for BUY transfers
 double getSellPriceAvg()
          Gets the average price for SELL transfers
 int getSellPriceTotal()
          Gets the total price for SELL transfers
 double getSellTsiAvg()
          Gets the average TSI value for SELL transfers
 int getSellTsiTotal()
          Gets the total TSI value for BUY transfers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferTotals

public TransferTotals()
Method Detail

calculateTotals

public static TransferTotals calculateTotals(java.util.List transfers)
Calculates the totals based on a list of transfers.

Parameters:
transfers - List of transfers
Returns:
TransferTotals object containing totals for the list of transfers.

getAmountBuy

public final int getAmountBuy()
Gets the number of BUY transfers

Returns:
Number of BUY transfers

getAmountSell

public final int getAmountSell()
Gets the number of SELL transfers

Returns:
Number of SELL transfers

getBuyPriceAvg

public final double getBuyPriceAvg()
Gets the average price for BUY transfers

Returns:
Average price

getBuyPriceTotal

public final int getBuyPriceTotal()
Gets the total price for BUY transfers

Returns:
Total price

getBuyTsiAvg

public final double getBuyTsiAvg()
Gets the average TSI value for BUY transfers

Returns:
Average TSI value

getBuyTsiTotal

public final int getBuyTsiTotal()
Gets the total TSI value for BUY transfers

Returns:
Total TSI value

getSellPriceAvg

public final double getSellPriceAvg()
Gets the average price for SELL transfers

Returns:
Average price

getSellPriceTotal

public final int getSellPriceTotal()
Gets the total price for SELL transfers

Returns:
Total price

getSellTsiAvg

public final double getSellTsiAvg()
Gets the average TSI value for SELL transfers

Returns:
Average TSI value

getSellTsiTotal

public final int getSellTsiTotal()
Gets the total TSI value for BUY transfers

Returns:
Total TSI value


Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.