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
cli, connectivity, derivedId, EMPTY_LINKS, engine, features, geometryId, 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
Modifier and TypeMethodDescriptionprotected booleanHook for subclasses to implement geometry specific checks.clone()Clone geometry.protected booleanequalParameters(AbstractGeometry other) Compare subclass-specific geometry parameters for semantic equivalence.protected intHash subclass-specific geometry parameters used byAbstractGeometry.similar(AbstractGeometry).voidinit()Generates a superstar geometry, i.e.booleanParse geometry-specific CLI options.Methods inherited from class AbstractGeometry
addDirected, addEdgeAt, addLinkAt, addUndirected, alloc, check, clear, clearLinksFrom, clearLinksTo, create, create, create, decodeGeometry, deriveCompetitionGeometry, displaySingle, encodeGeometry, enforceSize, equals, getAddwire, getCLI, getConnectivity, getEncodeKey, getFeatures, getLabel, getName, getNetwork2D, getNetwork3D, getRewire, getSize, getSpecs, getType, hashCode, isConsistent, isDerivedFrom, isGraphConnected, isInterspecies, isLattice, isNeighborOf, isRegular, isRewired, isSingle, isType, isUndirected, isUnique, markDerivedFrom, parse, removeEdgeAt, removeLinkAt, rewire, rewireDirected, rewireEdgeAt, rewireLinkAt, rewireUndirected, setAddwire, setConnectivity, setInterspecies, setName, setNetwork2D, setNetwork3D, setRewire, setSingle, setSize, setType, similar, 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
-
equalParameters
Description copied from class:AbstractGeometryCompare subclass-specific geometry parameters for semantic equivalence.- Overrides:
equalParametersin classAbstractGeometry- Parameters:
other- the geometry to compare against- Returns:
trueif subclass-specific settings are equivalent
-
hashParameters
protected int hashParameters()Description copied from class:AbstractGeometryHash subclass-specific geometry parameters used byAbstractGeometry.similar(AbstractGeometry).- Overrides:
hashParametersin classAbstractGeometry- Returns:
- the hash contribution of subclass-specific settings
-