Class AbstractLattice
Object
AbstractGeometry
AbstractLattice
- Direct Known Subclasses:
CubicGeometry, HexagonalGeometry, HierarchicalGeometry, LinearGeometry, SquareGeometry, TriangularGeometry
Base class for lattice-based geometries providing shared handling of fixed
boundary flags and parsing utilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag indicating whether boundaries are fixed or periodic (default).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
ConstructorsModifierConstructorDescriptionprotectedAbstractLattice(EvoLudo engine) Create a lattice geometry scaffold for the given engine. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone geometry.booleaninthashCode()booleanReport whether the lattice uses fixed boundaries instead of periodic ones.voidsetFixedBoundary(boolean fixedBoundary) Set whether the lattice uses fixed boundaries.protected StringstripBoundary(String spec) Helper to stripf|Fboundary markers from the argument string and store the result on the instance.Methods inherited from class AbstractGeometry
addDirected, addEdgeAt, addLinkAt, addUndirected, alloc, check, checkSettings, clearLinksFrom, clearLinksTo, create, create, decodeGeometry, deriveCompetitionGeometry, displaySingle, encodeGeometry, enforceSize, getAddwire, getConnectivity, getEncodeKey, getFeatures, getLabel, getName, getNetwork2D, getNetwork3D, getRewire, getSize, getSpecs, getType, init, isConsistent, isGraphConnected, isInterspecies, isLattice, isNeighborOf, isRegular, isRewired, isSingle, isType, isUndirected, isUnique, parse, parse, removeEdgeAt, removeLinkAt, rewire, rewireDirected, rewireEdgeAt, rewireLinkAt, rewireUndirected, setAddwire, setConnectivity, setInterspecies, setName, setNetwork2D, setNetwork3D, setRewire, setSingle, setSize, setType, swapEdges, usage, warn
-
Field Details
-
fixedBoundary
protected boolean fixedBoundaryFlag indicating whether boundaries are fixed or periodic (default).
-
-
Constructor Details
-
AbstractLattice
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:
trueif the lattice uses fixed boundaries instead of periodic ones.
-
setFixedBoundary
public void setFixedBoundary(boolean fixedBoundary) Set whether the lattice uses fixed boundaries.- Parameters:
fixedBoundary-truefor fixed boundary conditions
-
stripBoundary
-
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
-