S - The type representing the state.org.refcodes.graphical.Position, org.refcodes.graphical.PosXAccessor, org.refcodes.graphical.PosYAccessorMooreNeighbourhood, VonNeumannNeighbourhoodpublic interface Neighbourhood<S>
extends org.refcodes.graphical.Position
VonNeumannNeighbourhood or the
MooreNeighbourhood.org.refcodes.graphical.Position.PositionBuilder<B extends org.refcodes.graphical.Position.PositionBuilder<B>>, org.refcodes.graphical.Position.PositionMutator, org.refcodes.graphical.Position.PositionProperty, org.refcodes.graphical.Position.PositionPropertyBuilder| Modifier and Type | Method | Description |
|---|---|---|
S |
clockwiseNext() |
Returns the next clockwise state relative to the current state.
|
S |
clockwisePrevious() |
Returns the next anti-clockwise state relative to the current state.
|
default S |
next(Rotation aRotation) |
Returns the next neighborhood for the given rotation relative to the
current state.
|
S clockwiseNext()
S clockwisePrevious()
default S next(Rotation aRotation)
Rotation element provided, either
clockwiseNext() (Rotation.CLOCKWISE) or
clockwisePrevious() (Rotation.ANTI_CLOCKWISE) is called.aRotation - The rotation direction to use when calculating the next
neighborhood.Copyright © 2018. All rights reserved.