Class CyclicCellularAutomatonModel
java.lang.Object
java.util.concurrent.ForkJoinTask<java.lang.Void>
org.woehlke.computer.kurzweil.tabs.cca.CyclicCellularAutomatonModel
- All Implemented Interfaces:
java.io.Serializable,java.util.concurrent.Future<java.lang.Void>,Startable,TabModel
public class CyclicCellularAutomatonModel extends java.util.concurrent.ForkJoinTask<java.lang.Void> implements TabModel
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description CyclicCellularAutomatonModel(CyclicCellularAutomatonContext tabCtx) -
Method Summary
Modifier and Type Method Description protected booleanexec()java.lang.VoidgetRawResult()intgetState(int x, int y)voidresetLattice()protected voidsetRawResult(java.lang.Void value)voidstart()voidstartWithNeighbourhoodMoore()voidstartWithNeighbourhoodVonNeumann()voidstartWithNeighbourhoodWoehlke()voidstop()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, tryUnforkMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
-
Constructor Details
-
CyclicCellularAutomatonModel
-
-
Method Details
-
exec
protected boolean exec()- Specified by:
execin classjava.util.concurrent.ForkJoinTask<java.lang.Void>
-
resetLattice
public void resetLattice() -
startWithNeighbourhoodVonNeumann
public void startWithNeighbourhoodVonNeumann() -
startWithNeighbourhoodMoore
public void startWithNeighbourhoodMoore() -
startWithNeighbourhoodWoehlke
public void startWithNeighbourhoodWoehlke() -
getRawResult
public java.lang.Void getRawResult()- Specified by:
getRawResultin classjava.util.concurrent.ForkJoinTask<java.lang.Void>
-
setRawResult
protected void setRawResult(java.lang.Void value)- Specified by:
setRawResultin classjava.util.concurrent.ForkJoinTask<java.lang.Void>
-
start
public void start() -
stop
public void stop() -
getState
public int getState(int x, int y)
-