Package net.bmahe.genetics4j.neat
Class InnovationManager
java.lang.Object
net.bmahe.genetics4j.neat.InnovationManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicInteger
static final int
private final ConcurrentHashMap
<ConnectionPair, Integer> static final org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger -
DEFAULT_INITIAL_ID
public static final int DEFAULT_INITIAL_ID- See Also:
-
currentId
-
innovationCache
-
-
Constructor Details
-
InnovationManager
public InnovationManager(int initialValue) -
InnovationManager
public InnovationManager()
-
-
Method Details
-
computeNewId
public int computeNewId(int from, int to) -
resetCache
public void resetCache()
-