finance.stocks
Class Trades

java.lang.Object
  extended by finance.stocks.Trades

public class Trades
extends java.lang.Object

User: lyon Date: Aug 2, 2007 Time: 7:15:58 AM Copyright DocJava, Inc. 2005.


Constructor Summary
Trades(double commission)
           
 
Method Summary
 void add(Trade t)
           
 int getNumberOfShares()
           
 double getProfit()
           
 Trade[] getRecords()
           
 boolean isOdd()
           
 void tender(DarBean d)
          tender shares into dutch auction, selling remaining shares, with proration Do not include commission, as tendering is often free.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trades

public Trades(double commission)
Method Detail

add

public void add(Trade t)

getRecords

public Trade[] getRecords()

getProfit

public double getProfit()

isOdd

public boolean isOdd()
Returns:
true if number of trades is odd.

getNumberOfShares

public int getNumberOfShares()

tender

public void tender(DarBean d)
tender shares into dutch auction, selling remaining shares, with proration Do not include commission, as tendering is often free.

Parameters:
d - information about the dutch auction