| TradeResult.java |
1 /*
2 * @(#) $Id: TradeResult.java,v 1.2 2003/07/08 08:13:52 pankaj Exp $
3 *
4 * Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net).
5 * All rights reserved.
6 *
7 * The license governing the use of this file can be found in the
8 * root directory of the containing software.
9 */
10package rba;
11
12import java.io.Serializable;
13
14/**
15 * This class reflects the results of a buy/sell transaction.
16 *
17 * @author Copyright (c) 1999-2002 by BEA Systems, Inc. All Rights Reserved.
18 */
19public final class TradeResult implements Serializable {
20
21 // Number of shares really bought or sold.
22 private final int numberTraded;
23
24 private final String stockSymbol;
25
26 public TradeResult(int nt, String ss) {
27 numberTraded = nt;
28 stockSymbol = ss;
29 }
30
31 public int getNumberTraded() { return numberTraded; }
32 public String getStockSymbol() { return stockSymbol; }
33}
34