Class SuperstarGeometry

Object
AbstractGeometry
SuperstarGeometry

public class SuperstarGeometry extends AbstractGeometry
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 Details

    • petals

      private int petals
      Number of petals in the superstar structure.
    • amplification

      private int amplification
      Amplification factor (length of the linear chain plus additional nodes).
  • Constructor Details

    • SuperstarGeometry

      public SuperstarGeometry(EvoLudo engine)
      Create a super-star geometry tied to the given engine.
      Parameters:
      engine - EvoLudo pacemaker
  • Method Details

    • parse

      public boolean parse(String arg)
      Description copied from class: AbstractGeometry
      Parse geometry-specific CLI options.
      Overrides:
      parse in class AbstractGeometry
      Parameters:
      arg - the argument string without the geometry key
      Returns:
      true if parsing succeeded, false if 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:

      1. Population size \(N=(r+k-1)p+1\) with \(r,k,p\) integer.
      2. Strong amplification requires \(r\gg k,p\).
      3. Node 0 is the hub.
      Specified by:
      init in class AbstractGeometry
      See Also:
    • checkSettings

      protected boolean checkSettings()
      Description copied from class: AbstractGeometry
      Hook for subclasses to implement geometry specific checks.
      Overrides:
      checkSettings in class AbstractGeometry
      Returns:
      true if adjustments require a reset
    • clone

      public SuperstarGeometry clone()
      Description copied from class: AbstractGeometry
      Clone geometry.

      Requirements/notes:

      1. Overrides clone() in Object but conflicts with GWT's aversion to clone()ing...
      2. Remove @SuppressWarnings("all") to ensure that no other issues crept in when modifying method.
      Overrides:
      clone in class AbstractGeometry
      Returns:
      clone of geometry
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractGeometry
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AbstractGeometry