Class DiffusionLimitedAggregationModel
java.lang.Object
java.util.concurrent.ForkJoinTask<java.lang.Void>
org.woehlke.computer.kurzweil.tabs.dla.DiffusionLimitedAggregationModel
- All Implemented Interfaces:
java.io.Serializable
,java.util.concurrent.Future<java.lang.Void>
,Startable
,TabModel
public class DiffusionLimitedAggregationModel extends java.util.concurrent.ForkJoinTask<java.lang.Void> implements TabModel
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DiffusionLimitedAggregationModel(DiffusionLimitedAggregationContext tabCtx)
-
Method Summary
Modifier and Type Method Description protected boolean
exec()
int
getAgeFor(int x, int y)
java.lang.Void
getRawResult()
boolean
hasDendriteNeighbour(int myX, int myY)
protected void
setRawResult(java.lang.Void value)
void
start()
void
step()
void
stop()
Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
-
Constructor Details
-
DiffusionLimitedAggregationModel
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
step
public void step() -
getAgeFor
public int getAgeFor(int x, int y) -
exec
protected boolean exec()- Specified by:
exec
in classjava.util.concurrent.ForkJoinTask<java.lang.Void>
-
hasDendriteNeighbour
public boolean hasDendriteNeighbour(int myX, int myY) -
getRawResult
public java.lang.Void getRawResult()- Specified by:
getRawResult
in classjava.util.concurrent.ForkJoinTask<java.lang.Void>
-
setRawResult
protected void setRawResult(java.lang.Void value)- Specified by:
setRawResult
in classjava.util.concurrent.ForkJoinTask<java.lang.Void>
-