Class RuleTreeGen
java.lang.Object
application.model.rules.ruleloader.ruletree.RuleTreeGen
public class RuleTreeGen
extends java.lang.Object
Mostly taken from Golly
-
Constructor Summary
Constructors Constructor Description RuleTreeGen(int numStates, Coordinate[] neighbourhood, java.util.function.BiFunction<java.lang.Integer,int[],java.lang.Integer> f)
Constructs a rule tree with the provided parameters -
Method Summary
Modifier and Type Method Description Ruletree
getRuleTree()
-
Constructor Details
-
RuleTreeGen
public RuleTreeGen(int numStates, Coordinate[] neighbourhood, java.util.function.BiFunction<java.lang.Integer,int[],java.lang.Integer> f)Constructs a rule tree with the provided parameters- Parameters:
numStates
- The number of states in the ruletreeneighbourhood
- The neighbourhood of the ruletreef
- The transition function of the ruletree
-
-
Method Details