|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.layers.InputContainer
at.tuwien.ifs.somtoolbox.layers.Unit
at.tuwien.ifs.somtoolbox.layers.GrowingCellUnit
public class GrowingCellUnit
Extension of Unit, needed to save additional data of growing cell structures
Nested Class Summary |
---|
Nested classes/interfaces inherited from class at.tuwien.ifs.somtoolbox.layers.Unit |
---|
Unit.FeatureWeightMode |
Field Summary | |
---|---|
private List<GrowingCellTetraheder> |
connectedTetraheders
The Tetraheders this Unit is connected to |
private int |
diameter
|
private double |
posX
Position of Unit in Displayspace X |
private double |
posY
Position of Unit in Displayspace Y |
private double |
signalCounter
The signal counter of this unit |
private double |
voronoiEstimate
The estimate of space covered by this unit |
Fields inherited from class at.tuwien.ifs.somtoolbox.layers.Unit |
---|
CONTEXT, GATE, KEYWORDS, LABELSOM |
Constructor Summary | |
---|---|
GrowingCellUnit(GrowingCellLayer layer,
double[] weights)
Std Constructor, initializes the unit wich weights |
Method Summary | |
---|---|
void |
applyMovement(double deltax,
double deltay)
|
GrowingCellUnit |
clone()
|
void |
connect(GrowingCellTetraheder ct)
Connects this unit to Tetraheder ct |
void |
disconnect(GrowingCellTetraheder t)
Disconnects the Unit from tetraheder t |
boolean |
equals(Object o)
|
List<GrowingCellTetraheder> |
getConnectedTetraheders()
|
int |
getDiameter()
|
double |
getSignalCounter()
|
double |
getVoronoiEstimate()
|
double |
getX()
|
int |
getXPos()
Returns the horizontal position of this unit on the map it is part of. |
double |
getY()
|
int |
getYPos()
Returns the vertical position of this unit on the map it is part of. |
void |
putAtPosition(double x,
double y)
Puts the Unit at Position (x,y) in Display-Space |
void |
setSignalCounter(double d)
|
void |
setVoronoiEstimate(double voronoiEstimate)
|
String |
toString()
|
Methods inherited from class at.tuwien.ifs.somtoolbox.layers.InputContainer |
---|
addMappedInput, clearMappedInputs, getInputIndex, getMappedInputDistance, getMappedInputDistance, getMappedInputDistances, getMappedInputName, getMappedInputNames, getMappedInputNamesAsList, getNumberOfMappedInputs, isMapped |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private List<GrowingCellTetraheder> connectedTetraheders
private double signalCounter
private double voronoiEstimate
private int diameter
private double posX
private double posY
Constructor Detail |
---|
public GrowingCellUnit(GrowingCellLayer layer, double[] weights)
layer
- The layer on which this unit residesweights
- The weight vector of this unitMethod Detail |
---|
public double getSignalCounter()
public void setSignalCounter(double d)
public double getVoronoiEstimate()
public void setVoronoiEstimate(double voronoiEstimate)
public void connect(GrowingCellTetraheder ct)
public List<GrowingCellTetraheder> getConnectedTetraheders()
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Unit
public void disconnect(GrowingCellTetraheder t)
public void putAtPosition(double x, double y)
public double getX()
public double getY()
public int getXPos()
Unit
getXPos
in class Unit
public int getYPos()
Unit
getYPos
in class Unit
public int getDiameter()
public void applyMovement(double deltax, double deltay)
deltax
- Movement along x-axisdeltay
- Movement along y-axispublic GrowingCellUnit clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |