|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.exponto.jstock.indicators.IndicatorParameters
com.exponto.jstock.indicators.SingleParameterParameters
Contains Moving Average specific parameters used in computation of an indicator series. It may also be used by related indicators using the same kind of parameters. Parameter name (for properties file) may be specified in the Constructor.
Field Summary |
Fields inherited from class com.exponto.jstock.indicators.IndicatorParameters |
m_compArray, m_parameterValues, m_validFrom, sm_delimiter, sm_validTo |
Constructor Summary | |
SingleParameterParameters(int days,
java.lang.String propName,
java.lang.String label,
java.lang.String toolTipString)
|
|
SingleParameterParameters(java.lang.String s,
java.lang.String propName,
java.lang.String label,
java.lang.String toolTipString)
|
Method Summary | |
boolean |
equals(java.lang.Object o)
Only checks that the Indicator parameters are equal. |
int[] |
fromParameterString(java.lang.String s)
Generates new parameter(s) from a string. |
int |
getNumberOfDays()
|
java.lang.String[] |
getParameterNames()
|
javax.swing.JComponent[][] |
getUserInterface()
Provides the Options menu with components to use for this indicator. |
int |
hashCode()
Note: Reach MAXINT after about 7 - 10 parameters depending on the parameter |
boolean |
indicatorEnabled()
Checks if the parameters settings of this indicator indicates that the Indicator is activated (e.g. |
void |
setNumberOfDays(int i)
|
java.lang.String |
toParameterString()
Used to generate a string of the parameter(s) of this instance. |
void |
updateParameters()
Used to ensure that indicators parameters are up to date before saving. |
Methods inherited from class com.exponto.jstock.indicators.IndicatorParameters |
getParameters, getValidFrom, getValidTo, setParameters, setParameters, setValidFrom, setValidTo, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SingleParameterParameters(java.lang.String s, java.lang.String propName, java.lang.String label, java.lang.String toolTipString)
public SingleParameterParameters(int days, java.lang.String propName, java.lang.String label, java.lang.String toolTipString)
Method Detail |
public java.lang.String[] getParameterNames()
getParameterNames
in class IndicatorParameters
public int getNumberOfDays()
public void setNumberOfDays(int i)
i
- the number of days used in the calculationpublic javax.swing.JComponent[][] getUserInterface()
IndicatorParameters
getUserInterface
in interface IndicatorParametersInterface
getUserInterface
in class IndicatorParameters
public boolean indicatorEnabled()
IndicatorParametersInterface
indicatorEnabled
in interface IndicatorParametersInterface
indicatorEnabled
in class IndicatorParameters
public void updateParameters()
IndicatorParametersInterface
updateParameters
in interface IndicatorParametersInterface
updateParameters
in class IndicatorParameters
public java.lang.String toParameterString()
IndicatorParametersInterface
public int[] fromParameterString(java.lang.String s)
IndicatorParametersInterface
s
- the parameters of the class encoded as a string
public int hashCode()
IndicatorParameters
hashCode
in interface IndicatorParametersInterface
hashCode
in class IndicatorParameters
public boolean equals(java.lang.Object o)
equals
in class IndicatorParameters
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |