|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.logAnalyzer.analysis.LAAnalysis
This class defines a template to implement results of analysis.
Constructor Summary | |
protected |
LAAnalysis(LAAnalyzer analyzer,
java.lang.String[] valuesNames)
Construct a new analysis from the specified analyzer and values names. |
Method Summary | |
void |
changeKey(java.lang.Comparable oldKey,
java.lang.Comparable newKey)
Change the specified old key to the new key. |
boolean |
containsKey(java.lang.Comparable key)
Returns true if the analysis contains the specified key. |
LAAnalyzer |
getAnalyzer()
Returns the originator analyzer. |
java.text.SimpleDateFormat |
getDateFormat()
Returns the format used for dates. |
protected java.util.Date |
getDateValue(java.lang.Comparable key,
int index)
Returns the value associated to the specified key. |
protected double |
getDoubleValue(java.lang.Comparable key,
int index)
Returns the value associated to the specified key. |
java.lang.Comparable |
getKey(int index)
Returns the keys at the specified index. |
java.util.Vector |
getKeys()
Returns the resulting values keys vector. |
protected long |
getLongValue(java.lang.Comparable key,
int index)
Returns the value associated to the specified key. |
protected java.lang.Object |
getObjectValue(java.lang.Comparable key,
int index)
Returns the value associated to the specified key. |
java.lang.String |
getStringKey(int index)
Returns the keys at the specified index. |
protected java.lang.String |
getStringValue(java.lang.Comparable key,
int index)
Returns the value associated to the specified key. |
protected java.lang.String |
getValueName(int index)
Returns the value name. |
protected int |
getValueNameIndex(java.lang.String valueName)
Returns the index of the value name. |
protected java.lang.String[] |
getValuesNames()
Returns the values names. |
protected void |
moveKeyAt(int index,
int newIndex)
Moves the key at the specified index to the specified new index. |
protected java.util.Date |
putDateValue(java.lang.Comparable key,
int index,
java.util.Date value)
Set the value associated to the specified key. |
protected double |
putDoubleValue(java.lang.Comparable key,
int index,
double value)
Set the value associated to the specified key. |
protected long |
putLongValue(java.lang.Comparable key,
int index,
long value)
Set the value associated to the specified key. |
protected java.lang.String |
putStringValue(java.lang.Comparable key,
int index,
java.lang.String value)
Set the value associated to the specified key. |
protected void |
removeKey(java.lang.Comparable key)
Remove the specified key of the analysis. |
protected void |
removeKey(int keyIndex)
Remove the key at the specified index of the analysis. |
long |
size()
Returns the number of values in the analysis. |
protected void |
sortByValueASC(int index)
Sort results by the specified value form lowest to greatest. |
protected void |
sortByValueDESC(int index)
Sort results by the specified value form greatest to lowest. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected LAAnalysis(LAAnalyzer analyzer, java.lang.String[] valuesNames)
analyzer
- Analyzer.valuesNames
- Names of values.Method Detail |
public final LAAnalyzer getAnalyzer()
public final java.text.SimpleDateFormat getDateFormat()
public final boolean containsKey(java.lang.Comparable key)
key
- Key to check.
protected final void moveKeyAt(int index, int newIndex)
index
- Index of the key to move.newIndex
- New index of the key.public final java.lang.Comparable getKey(int index)
index
- Key index.
public final java.lang.String getStringKey(int index)
#dateFormat
.
index
- Key index.
public final java.util.Vector getKeys()
protected final java.util.Date getDateValue(java.lang.Comparable key, int index)
key
- Key of the values group.index
- Index of the value.
protected final double getDoubleValue(java.lang.Comparable key, int index)
key
- Key of the values group.index
- Index of the value.
protected final long getLongValue(java.lang.Comparable key, int index)
key
- Key of the values group.index
- Index of the value.
protected final java.lang.String getStringValue(java.lang.Comparable key, int index)
#dateFormat
.
key
- Key of the values group.index
- Index of the value.
protected final java.lang.Object getObjectValue(java.lang.Comparable key, int index)
key
- Key of the values group.index
- Index of the value.
protected final java.util.Date putDateValue(java.lang.Comparable key, int index, java.util.Date value)
key
- Key of the values group.index
- Index of the value.value
- Value to set.
protected final double putDoubleValue(java.lang.Comparable key, int index, double value)
key
- Key of the values group.index
- Index of the value.value
- Value to set.
protected final long putLongValue(java.lang.Comparable key, int index, long value)
key
- Key of the values group.index
- Index of the value.value
- Value to set.
protected final java.lang.String putStringValue(java.lang.Comparable key, int index, java.lang.String value)
key
- Key of the values group.index
- Index of the value.value
- Value to set.
protected final int getValueNameIndex(java.lang.String valueName)
valueName
- Name of value.
protected final java.lang.String getValueName(int index)
index
- Index of the value.
protected final java.lang.String[] getValuesNames()
public final void changeKey(java.lang.Comparable oldKey, java.lang.Comparable newKey)
oldKey
- Key to change.newKey
- New key.protected final void removeKey(java.lang.Comparable key)
key
- Key to remove.protected final void removeKey(int keyIndex)
keyIndex
- Key index to remove.public final long size()
protected final void sortByValueASC(int index)
index
- Index of the value used to sort results.protected final void sortByValueDESC(int index)
index
- Index of the value used to sort results.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |