public abstract class AbstractKmc extends java.lang.Object implements IKmc
Modifier and Type | Field and Description |
---|---|
private int |
iterationsForLastSimulation |
private AbstractLattice |
lattice |
private AbstractList |
list |
Constructor and Description |
---|
AbstractKmc(Parser parser) |
Modifier and Type | Method and Description |
---|---|
float |
getCoverage()
Coverage is not defined in the etching.
|
int |
getCurrentRadius()
It only makes sence in
AbstractGrowthKmc.getCurrentRadius() . |
int |
getIterations() |
AbstractLattice |
getLattice() |
AbstractList |
getList() |
double |
getTime() |
abstract void |
initialiseRates(double[] rates)
Initialises the rates of the simulation.
|
protected abstract boolean |
performSimulationStep()
Performs a simulation step.
|
void |
reset()
Resets the lattice and the list of atoms.
|
void |
setDepositionRate(double depositionRatePerSite,
double islandDensity) |
void |
setIterations(int iterations) |
void |
setLattice(AbstractLattice lattice) |
int |
simulate()
Does the actual simulation.
|
void |
simulate(double endtime)
Does the actual simulation.
|
int |
simulate(int iterations)
Does the actual simulation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
depositSeed, getHexagonalPeriodicSurface, getSampledSurface
private final AbstractList list
private AbstractLattice lattice
private int iterationsForLastSimulation
public AbstractKmc(Parser parser)
public int getIterations()
getIterations
in interface IKmc
public void setIterations(int iterations)
public void setDepositionRate(double depositionRatePerSite, double islandDensity)
setDepositionRate
in interface IKmc
public float getCoverage()
public AbstractLattice getLattice()
getLattice
in interface IKmc
public final void setLattice(AbstractLattice lattice)
lattice
- the lattice to setpublic final AbstractList getList()
public int getCurrentRadius()
AbstractGrowthKmc.getCurrentRadius()
. Used to have a common interfacepublic int simulate()
public void simulate(double endtime)
public int simulate(int iterations)
public abstract void initialiseRates(double[] rates)
initialiseRates
in interface IKmc
rates
- public void reset()
protected abstract boolean performSimulationStep()