Class SuperstarGeometry
Object
AbstractGeometry
SuperstarGeometry
Directed super-star geometry with configurable petals and amplification. A
super-star consists of a central hub surrounded by
p petals, each
with a reservoir of size r feeding into a linear chain of length
k that connects back to the hub. The structure implements a strong
directed evolutionary amplifier.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intAmplification factor (length of the linear chain plus additional nodes).private intNumber of petals in the superstar structure.Fields inherited from class AbstractGeometry
connectivity, EMPTY_LINKS, engine, features, in, isInterspecies, isRegular, isRewired, isSingle, isUndirected, isValid, kin, kout, logger, name, network2D, network3D, out, pAddwire, pRewire, size, specs, type -
Constructor Summary
ConstructorsConstructorDescriptionSuperstarGeometry(EvoLudo engine) Create a super-star geometry tied to the given engine. -
Method Summary
Methods inherited from class AbstractGeometry
addDirected, addEdgeAt, addLinkAt, addUndirected, alloc, check, clearLinksFrom, clearLinksTo, create, create, decodeGeometry, deriveCompetitionGeometry, displaySingle, encodeGeometry, enforceSize, getAddwire, getConnectivity, getEncodeKey, getFeatures, getLabel, getName, getNetwork2D, getNetwork3D, getRewire, getSize, getSpecs, getType, isConsistent, isGraphConnected, isInterspecies, isLattice, isNeighborOf, isRegular, isRewired, isSingle, isType, isUndirected, isUnique, parse, removeEdgeAt, removeLinkAt, rewire, rewireDirected, rewireEdgeAt, rewireLinkAt, rewireUndirected, setAddwire, setConnectivity, setInterspecies, setName, setNetwork2D, setNetwork3D, setRewire, setSingle, setSize, setType, swapEdges, usage, warn
-
Field Details
-
petals
private int petalsNumber of petals in the superstar structure. -
amplification
private int amplificationAmplification factor (length of the linear chain plus additional nodes).
-
-
Constructor Details
-
SuperstarGeometry
Create a super-star geometry tied to the given engine.- Parameters:
engine- EvoLudo pacemaker
-
-
Method Details
-
parse
Description copied from class:AbstractGeometryParse geometry-specific CLI options.- Overrides:
parsein classAbstractGeometry- Parameters:
arg- the argument string without the geometry key- Returns:
trueif parsing succeeded,falseif invalid
-
init
public void init()Generates a superstar geometry, i.e. a strong directed amplifier of selection. Reservoir nodes within each petal connect to the hub via a linear chain while the hub connects back to all reservoir nodes.Requirements/notes:
- Population size \(N=(r+k-1)p+1\) with \(r,k,p\) integer.
- Strong amplification requires \(r\gg k,p\).
- Node
0is the hub.
- Specified by:
initin classAbstractGeometry- See Also:
-
checkSettings
protected boolean checkSettings()Description copied from class:AbstractGeometryHook for subclasses to implement geometry specific checks.- Overrides:
checkSettingsin classAbstractGeometry- Returns:
trueif adjustments require a reset
-
clone
Description copied from class:AbstractGeometryClone geometry.Requirements/notes:
- Overrides:
clonein classAbstractGeometry- Returns:
- clone of geometry
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractGeometry
-
equals
- Overrides:
equalsin classAbstractGeometry
-