public class BasicAtom extends AbstractAtom
Modifier and Type | Field and Description |
---|---|
private BasicAtom[] |
neighbours |
private byte |
type |
private short |
x |
private short |
y |
ARMCHAIR_EDGE, BULK, CORNER, EDGE, KINK, SICK, TERRACE, ZIGZAG_EDGE, ZIGZAG_WITH_EXTRA
Constructor and Description |
---|
BasicAtom(short x,
short y) |
Modifier and Type | Method and Description |
---|---|
BasicAtom |
getNeighbour(int pos) |
Point3D |
getPos()
Returns the position within the unit cell, (0,0) in this case.
|
double |
getProbability() |
byte |
getType() |
short |
getX() |
short |
getY() |
boolean |
isEligible() |
double |
remove() |
double |
remove1st() |
void |
setAsBulk() |
void |
setNeighbour(AbstractAtom a,
int pos) |
void |
updateN1FromScratch()
This was updateTypeFromScratch().
|
getNumberOfNeighbours, getProbabilities, getRealType, isOccupied, isOnList, isRemoved, setList, setNumberOfNeighbours, setOccupied, setProbabilities, setRemoved, unRemove
private BasicAtom[] neighbours
private byte type
private final short x
private final short y
public short getX()
public short getY()
public Point3D getPos()
AbstractAtom
getPos
in interface IAtom
getPos
in class AbstractAtom
public void setNeighbour(AbstractAtom a, int pos)
setNeighbour
in interface IAtom
setNeighbour
in class AbstractAtom
public BasicAtom getNeighbour(int pos)
public byte getType()
public void setAsBulk()
public void updateN1FromScratch()
public double remove1st()
public double remove()
public double getProbability()
public boolean isEligible()