com.exponto.jstock.db
Class IndicatorController

java.lang.Object
  extended bycom.exponto.jstock.db.IndicatorController

public class IndicatorController
extends java.lang.Object

The responsibility for this class is to handle the communication with the indicator classes, e.g. to provide new instances of indicator classes.

Author:
kaare

Method Summary
 java.lang.String[] getIndicatorNames()
           
 java.util.ArrayList getIndicators()
          Gets new instances of every available indicator.
 java.util.ArrayList getIndicators(java.util.ArrayList dbIndicatorParameterList)
           
 java.util.ArrayList getIndicatorValues()
           
static IndicatorController getInstance()
           
 java.util.ArrayList getJComponentList()
           
 void restoreAll()
          Restore all IndicatorParameter default values to whatever is stored in the properties file This method is only applicable for default values as chart spesific parameters will be be saved in db.
 void saveAll()
          Saves current values of the IndicatorParameters to the properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IndicatorController getInstance()
Returns:
THE instance of this class

getIndicatorNames

public java.lang.String[] getIndicatorNames()
Returns:
a String array with the names of the supportred indicators

getIndicators

public java.util.ArrayList getIndicators(java.util.ArrayList dbIndicatorParameterList)

getIndicators

public java.util.ArrayList getIndicators()
Gets new instances of every available indicator. This is a little waste of memory as only enabled indicators will be used.

Returns:
an ArrayList with new instances of every indicator

saveAll

public void saveAll()
Saves current values of the IndicatorParameters to the properties file. This method is only applicable for default values as chart spesific parameters will be be saved in db.


restoreAll

public void restoreAll()
Restore all IndicatorParameter default values to whatever is stored in the properties file This method is only applicable for default values as chart spesific parameters will be be saved in db.


getJComponentList

public java.util.ArrayList getJComponentList()

getIndicatorValues

public java.util.ArrayList getIndicatorValues()
Returns:
an ArrayList with indicators that have implemented the IndicatorValuesInterface.


Copyright © 2004 Kaare Ranum