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, waitgetProbability, getType, isEligible, removepublic 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 IAtompublic double[] getProbabilities()
getProbabilities in interface IAtompublic void setRemoved()
setRemoved in interface IAtompublic final boolean isOccupied()
isOccupied in interface IAtompublic final void setOccupied(boolean occupied)
public final int getNumberOfNeighbours()
getNumberOfNeighbours in interface IAtompublic final void setNumberOfNeighbours(int numberOfNeighbours)
setNumberOfNeighbours in interface IAtompublic void setNeighbour(AbstractAtom lattice, int i)
setNeighbour in interface IAtompublic byte getRealType()
getRealType in interface IAtom