public abstract class AbstractAtom extends java.lang.Object implements IAtom
Modifier and Type | Field and Description |
---|---|
static byte |
ARMCHAIR_EDGE |
static byte |
BULK |
static byte |
CORNER |
static byte |
EDGE |
static byte |
KINK |
private java.lang.Boolean |
list |
private int |
numberOfNeighbours |
private boolean |
occupied |
private double[] |
probabilities |
private boolean |
removed |
static byte |
SICK |
static byte |
TERRACE |
static byte |
ZIGZAG_EDGE |
static byte |
ZIGZAG_WITH_EXTRA |
Constructor and Description |
---|
AbstractAtom() |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfNeighbours()
Number of neighbours that current atoms has, independently whether are occupied or not.
|
Point3D |
getPos()
Returns the position within the unit cell, (0,0) in this case.
|
double[] |
getProbabilities() |
byte |
getRealType()
If not overridden, returns directly the type of current atom.
|
boolean |
isOccupied() |
boolean |
isOnList() |
boolean |
isRemoved() |
void |
setList(java.lang.Boolean list) |
void |
setNeighbour(AbstractAtom lattice,
int i) |
void |
setNumberOfNeighbours(int numberOfNeighbours) |
void |
setOccupied(boolean occupied) |
void |
setProbabilities(double[] probabilities) |
void |
setRemoved() |
void |
unRemove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProbability, getType, isEligible, remove
public static final byte TERRACE
public static final byte CORNER
public static final byte EDGE
public static final byte ZIGZAG_EDGE
public static final byte ARMCHAIR_EDGE
public static final byte ZIGZAG_WITH_EXTRA
public static final byte SICK
public static final byte KINK
public static final byte BULK
private java.lang.Boolean list
private double[] probabilities
private int numberOfNeighbours
private boolean removed
private boolean occupied
public void setProbabilities(double[] probabilities)
setProbabilities
in interface IAtom
public double[] getProbabilities()
getProbabilities
in interface IAtom
public void setRemoved()
setRemoved
in interface IAtom
public final boolean isOccupied()
isOccupied
in interface IAtom
public final void setOccupied(boolean occupied)
public final int getNumberOfNeighbours()
getNumberOfNeighbours
in interface IAtom
public final void setNumberOfNeighbours(int numberOfNeighbours)
setNumberOfNeighbours
in interface IAtom
public void setNeighbour(AbstractAtom lattice, int i)
setNeighbour
in interface IAtom
public byte getRealType()
getRealType
in interface IAtom