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, unRemoveprivate BasicAtom[] neighbours
private byte type
private final short x
private final short y
public short getX()
public short getY()
public Point3D getPos()
AbstractAtomgetPos in interface IAtomgetPos in class AbstractAtompublic void setNeighbour(AbstractAtom a, int pos)
setNeighbour in interface IAtomsetNeighbour in class AbstractAtompublic 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()