public class InputQEContainer extends java.lang.Object implements QEContainer
Modifier and Type | Field and Description |
---|---|
private java.util.Vector<InputDatum> |
inputs |
private double |
qe |
private java.util.Vector<Unit> |
units |
Constructor and Description |
---|
InputQEContainer() |
Modifier and Type | Method and Description |
---|---|
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
|
java.lang.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
|
java.lang.String |
getUnitCoords(int index)
returns a string of format x-coord x y-coord of the unit at the specified index
|
void |
setInputs(java.util.Vector<InputDatum> inputs)
set the complete list of input data stored in this container (existing items are overridden)
|
void |
setMapUnits(java.util.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
|
private double qe
private java.util.Vector<InputDatum> inputs
private java.util.Vector<Unit> units
public void addInput(InputDatum input)
public void setInputs(java.util.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
outpublic void addMapUnit(Unit unit)
unit
- the unit to addpublic void setMapUnits(java.util.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 java.lang.String getUnitCoords(int index)
index
- the index of the unit in the list of units stored in this objectpublic java.lang.String getInputLabel(int index)
index
- the index of the label in the list of labels hold by this object