KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > data > SignalsDataset


1 /* ======================================
2  * JFreeChart : a free Java chart library
3  * ======================================
4  *
5  * Project Info: http://www.jfree.org/jfreechart/index.html
6  * Project Lead: David Gilbert (david.gilbert@object-refinery.com);
7  *
8  * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
9  *
10  * This library is free software; you can redistribute it and/or modify it under the terms
11  * of the GNU Lesser General Public License as published by the Free Software Foundation;
12  * either version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License along with this
19  * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20  * Boston, MA 02111-1307, USA.
21  *
22  * -------------------
23  * SignalsDataset.java
24  * -------------------
25  * (C) Copyright 2002, 2003, by Sylvain Vieujot and Contributors.
26  *
27  * Original Author: Sylvain Vieujot;
28  * Contributor(s): David Gilbert (for Object Refinery Limited);
29  *
30  * $Id: SignalsDataset.java,v 1.3 2003/07/10 07:16:45 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 08-Jan-2002 : Version 1 (SV);
35  * 07-Oct-2002 : Added Javadocs (DG);
36  */

37
38 package org.jfree.data;
39
40 /**
41  * An interface that adds signal information to an {@link XYDataset}.
42  *
43  * @author Sylvain Vieujot
44  */

45 public interface SignalsDataset extends XYDataset {
46
47     /** Useful constant indicating trade recommendation. */
48     public static final int ENTER_LONG = 1;
49
50     /** Useful constant indicating trade recommendation. */
51     public static final int ENTER_SHORT = -1;
52
53     /** Useful constant indicating trade recommendation. */
54     public static final int EXIT_LONG = 2;
55
56     /** Useful constant indicating trade recommendation. */
57     public static final int EXIT_SHORT = -2;
58
59     /**
60      * Returns the type.
61      *
62      * @param series the series (zero-based index).
63      * @param item the item (zero-based index).
64      *
65      * @return the type.
66      */

67     public int getType(int series, int item);
68
69     /**
70      * Returns the level.
71      *
72      * @param series the series (zero-based index).
73      * @param item the item (zero-based index).
74      *
75      * @return the level.
76      */

77     public double getLevel(int series, int item);
78
79 }
80
Popular Tags