Modifier and Type | Field and Description |
---|---|
private int |
direction
MultiAtom has a certain direction that goes from atom 0 to atom 1.
|
private MultiAtomProcess |
process |
Constructor and Description |
---|
MultiAtom(int islandNumber) |
MultiAtom(Island another) |
Modifier and Type | Method and Description |
---|---|
void |
addRate(byte ignored,
double rate,
int pos) |
int |
getDirection() |
double |
getEdgeRate(int pos) |
int |
getEdgeType(int pos)
Edge 0 is the neighbour of atom 0, and
edge 1 is the neighbour of atom 1.
|
int |
getRandomMultiAtomDirection()
Selects a random direction for the multi atom to move.
|
void |
setDirection(int direction)
Set the direction of the MultiAtom, from atom at position 0 to atom 1.
|
addAtom, addToSumRate, clear, compareTo, equalRate, getAtomAt, getAvgDistance, getCentreOfMass, getIslandNumber, getMaxDistance, getNumberOfAtoms, getRandomDirection, getRate, getSumRate, removeAtom, setCentreOfMass, setIslandNumber, setNumberOfAtoms, setOnList, setRate, setSumRate, toString, update
private final MultiAtomProcess process
private int direction
public MultiAtom(int islandNumber)
public MultiAtom(Island another)
public int getDirection()
public void setDirection(int direction)
direction
- [0-5]public int getRandomMultiAtomDirection()
public double getEdgeRate(int pos)
public void addRate(byte ignored, double rate, int pos)
public int getEdgeType(int pos)
pos
- edge 0 or 1