Class AbstractLattice

Object
AbstractGeometry
AbstractLattice
Direct Known Subclasses:
CubicGeometry, HexagonalGeometry, HierarchicalGeometry, LinearGeometry, SquareGeometry, TriangularGeometry

public abstract class AbstractLattice extends AbstractGeometry
Base class for lattice-based geometries providing shared handling of fixed boundary flags and parsing utilities.
  • Field Details

    • fixedBoundary

      protected boolean fixedBoundary
      Flag indicating whether boundaries are fixed or periodic (default).
  • Constructor Details

    • AbstractLattice

      protected AbstractLattice(EvoLudo engine)
      Create a lattice geometry scaffold for the given engine.
      Parameters:
      engine - the EvoLudo pacemaker
  • Method Details

    • isFixedBoundary

      public boolean isFixedBoundary()
      Report whether the lattice uses fixed boundaries instead of periodic ones.
      Returns:
      true if the lattice uses fixed boundaries instead of periodic ones.
    • setFixedBoundary

      public void setFixedBoundary(boolean fixedBoundary)
      Set whether the lattice uses fixed boundaries.
      Parameters:
      fixedBoundary - true for fixed boundary conditions
    • stripBoundary

      protected String stripBoundary(String spec)
      Helper to strip f|F boundary markers from the argument string and store the result on the instance.
      Parameters:
      spec - CLI fragment describing the geometry
      Returns:
      the cleaned specification without boundary decorators
    • clone

      public AbstractLattice 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