|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.reportgenerator.QEContainers.InputQEContainer
public class InputQEContainer
Field Summary | |
---|---|
private Vector<InputDatum> |
inputs
|
private double |
qe
|
private Vector<Unit> |
units
|
Constructor Summary | |
---|---|
InputQEContainer()
|
Method Summary | |
---|---|
void |
addInput(InputDatum input)
add a new input datum to the container |
void |
addMapUnit(Unit unit)
adds a unit to this container |
void |
clearInputs()
removes all inputs stored in this container |
void |
clearMapUnits()
removes all units from the list |
InputDatum |
getInput(int i)
return the input datum at the specified index |
String |
getInputLabel(int index)
returns the label for the input at the given index |
Unit |
getMapUnit(int i)
returns the unit at the specified index |
int |
getNumInputs()
the number of input items having the qe stored by this object |
double |
getQE()
return the quantization error, this container stores |
String |
getUnitCoords(int index)
returns a string of format x-coord x y-coord of the unit at the specified index |
void |
setInputs(Vector<InputDatum> inputs)
set the complete list of input data stored in this container (existing items are overridden) |
void |
setMapUnits(Vector<Unit> units)
sets the complete list of units stored in this container. |
void |
setQE(double qe)
sets the qe of this container to the given value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double qe
private Vector<InputDatum> inputs
private Vector<Unit> units
Constructor Detail |
---|
public InputQEContainer()
Method Detail |
---|
public void addInput(InputDatum input)
public void setInputs(Vector<InputDatum> inputs)
public void clearInputs()
public InputDatum getInput(int i)
i
- the index from which the index datum shall be returned. Not checked whether there exits one ... so watch
out
public void addMapUnit(Unit unit)
unit
- the unit to addpublic void setMapUnits(Vector<Unit> units)
units
- the list of units to storepublic void clearMapUnits()
public Unit getMapUnit(int i)
i
- the index of the unit to return (is not checked whether this index exists - watch out)
public double getQE()
getQE
in interface QEContainer
public void setQE(double qe)
setQE
in interface QEContainer
qe
- the qe to be storecpublic int getNumInputs()
public String getUnitCoords(int index)
index
- the index of the unit in the list of units stored in this object
public String getInputLabel(int index)
index
- the index of the label in the list of labels hold by this object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |