Class NodeIdManagerRegistry
java.lang.Object
net.bmahe.genetics4j.neat.NodeIdManagerRegistry
Maintains one population-scoped
NodeIdManager per semantic node layout.
Layouts are keyed by their ordered input IDs, ordered output IDs, and hidden-node range rather than their concrete implementation class. Semantically equivalent layout implementations therefore share allocation history.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentHashMap<NodeIdManagerRegistry.LayoutKey, NodeIdManager> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmanagerFor(NeatNodeLayout nodeLayout) Returns the shared node-ID manager for a layout, creating it when first requested.
-
Field Details
-
managers
-
-
Constructor Details
-
NodeIdManagerRegistry
public NodeIdManagerRegistry()
-
-
Method Details
-
managerFor
Returns the shared node-ID manager for a layout, creating it when first requested.- Parameters:
nodeLayout- node layout used by a population- Returns:
- the shared manager for the layout's semantic key
- Throws:
NullPointerException- ifnodeLayoutisnull
-