|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.tools.math.AverageVector
public abstract class AverageVector
Handles several averagables.
| Field Summary | |
|---|---|
private java.util.List<Averagable> |
averagesList
|
| Constructor Summary | |
|---|---|
AverageVector()
|
|
| Method Summary | |
|---|---|
void |
addAveragable(Averagable avg)
Adds an Averagable to the list of criteria. |
void |
buildAverages(AverageVector av)
|
protected abstract java.lang.Object |
clone()
|
Averagable |
getAveragable(int index)
Returns the Averagable by index. |
Averagable |
getAveragable(java.lang.String name)
Returns the Averagable by name. |
int |
getSize()
Returns the number of averagables in this vector. |
java.awt.Component |
getVisualisationComponent(IOContainer container)
Returns a label that displays the ResultObjectAdapter.toResultString() result
encoded as html. |
void |
removeAveragable(Averagable avg)
Removes an Averagable from the list of criteria. |
int |
size()
Returns the number of averages in the list. |
java.lang.String |
toHTML()
|
java.lang.String |
toResultString()
The default implementation simply returns the result of the method Object.toString(). |
java.lang.String |
toString()
|
| Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter |
|---|
addAction, getActions, getName, toHTML |
| Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject |
|---|
copy, read, read, read, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface edu.udo.cs.yale.operator.IOObject |
|---|
copy, write, write |
| Field Detail |
|---|
private java.util.List<Averagable> averagesList
| Constructor Detail |
|---|
public AverageVector()
| Method Detail |
|---|
protected abstract java.lang.Object clone()
clone in class java.lang.Objectpublic int size()
public void addAveragable(Averagable avg)
Averagable to the list of criteria.
public void removeAveragable(Averagable avg)
Averagable from the list of criteria.
public Averagable getAveragable(int index)
public Averagable getAveragable(java.lang.String name)
public int getSize()
public java.lang.String toResultString()
ResultObjectAdapterObject.toString().
toResultString in interface ResultObjecttoResultString in class ResultObjectAdapterpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toHTML()
public java.awt.Component getVisualisationComponent(IOContainer container)
ResultObjectAdapterResultObjectAdapter.toResultString() result
encoded as html. Please note that the returned label is already enclosed
by a scroll pane. If you overwrite this method you should again ensure that
the returned component is scrollable. The given container is totally ignored.
getVisualisationComponent in interface ResultObjectgetVisualisationComponent in class ResultObjectAdapterpublic void buildAverages(AverageVector av)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||