1. /* ===========================================================
  2. * JFreeChart : a free chart library for the Java(tm) platform
  3. * ===========================================================
  4. *
  5. * (C) Copyright 2000-2004, by Object Refinery Limited and Contributors.
  6. *
  7. * Project Info: http://www.jfree.org/jfreechart/index.html
  8. *
  9. * This library is free software; you can redistribute it and/or modify it under the terms
  10. * of the GNU Lesser General Public License as published by the Free Software Foundation;
  11. * either version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  14. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. * See the GNU Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public License along with this
  18. * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  19. * Boston, MA 02111-1307, USA.
  20. *
  21. * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
  22. * in the United States and other countries.]
  23. *
  24. * -------------------
  25. * SignalsDataset.java
  26. * -------------------
  27. * (C) Copyright 2002-2004, by Sylvain Vieujot and Contributors.
  28. *
  29. * Original Author: Sylvain Vieujot;
  30. * Contributor(s): David Gilbert (for Object Refinery Limited);
  31. *
  32. * $Id: SignalsDataset.java,v 1.1 2004/08/31 15:36:12 mungady Exp $
  33. *
  34. * Changes
  35. * -------
  36. * 08-Jan-2002 : Version 1 (SV);
  37. * 07-Oct-2002 : Added Javadocs (DG);
  38. */
  39. package org.jfree.data.xy;
  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. /** Useful constant indicating trade recommendation. */
  47. public static final int ENTER_LONG = 1;
  48. /** Useful constant indicating trade recommendation. */
  49. public static final int ENTER_SHORT = -1;
  50. /** Useful constant indicating trade recommendation. */
  51. public static final int EXIT_LONG = 2;
  52. /** Useful constant indicating trade recommendation. */
  53. public static final int EXIT_SHORT = -2;
  54. /**
  55. * Returns the type.
  56. *
  57. * @param series the series (zero-based index).
  58. * @param item the item (zero-based index).
  59. *
  60. * @return the type.
  61. */
  62. public int getType(int series, int item);
  63. /**
  64. * Returns the level.
  65. *
  66. * @param series the series (zero-based index).
  67. * @param item the item (zero-based index).
  68. *
  69. * @return the level.
  70. */
  71. public double getLevel(int series, int item);
  72. }