Uses of Class
microsim.space.SpacePosition
-
Uses of SpacePosition in microsim.space
Modifier and TypeMethodDescriptionObjectSpaceIterator.getGridPosition()
Return the current position.@NonNull SpacePosition[]
AbstractSpace.getMooreNeighborsPositions
(int x, int y) Gets the extended Moore neighbors of the specified coordinate.@NonNull SpacePosition[]
AbstractSpace.getVonNeumannNeighborsPositions
(int x, int y) Gets the extended von Neumann neighbors of the specified coordinate.ObjectSpaceIterator.nextGridPosition()
Modifier and TypeMethodDescriptionboolean
DenseObjectSpace.addGridPosition
(@Nullable SpacePosition position) Add an object implementingSpacePosition
interface to the grid.boolean
MultiObjectSpace.addGridPosition
(@Nullable SpacePosition position) Add an object implementingSpacePosition
interface to the grid.boolean
ObjectSpace.addGridPosition
(@NonNull SpacePosition position) boolean
SparseObjectSpace.addGridPosition
(@Nullable SpacePosition object) Add an object implementingSpacePosition
interface to the grid.int
SpacePosition.compareTo
(@NonNull SpacePosition toPos) boolean
DenseObjectSpace.moveGridPosition
(@Nullable SpacePosition position, int destinationX, int destinationY) Move aSpacePosition
object from its current position to the specified destination, only if the destination cell is empty.boolean
MultiObjectSpace.moveGridPosition
(@Nullable SpacePosition position, int destinationX, int destinationY) Move aSpacePosition
object from its current position to the specified destination.boolean
ObjectSpace.moveGridPosition
(@NonNull SpacePosition object, int destinationX, int destinationY) boolean
SparseObjectSpace.moveGridPosition
(@Nullable SpacePosition position, int destinationX, int destinationY) Move aSpacePosition
object from its current position to the specified destination, only if the destination cell is empty.boolean
DenseObjectSpace.removeGridPosition
(@Nullable SpacePosition position) Remove theSpacePosition
object from the grid.boolean
MultiObjectSpace.removeGridPosition
(@Nullable SpacePosition position) Remove theSpacePosition
object from the grid.boolean
ObjectSpace.removeGridPosition
(@NonNull SpacePosition position) boolean
SparseObjectSpace.removeGridPosition
(@Nullable SpacePosition object) Remove theSpacePosition
object from the grid. -
Uses of SpacePosition in microsim.space.turtle
Modifier and TypeClassDescriptionclass
An agent able to move itself upon an object grid.class
class
An agent is able to move itself upon an object grid.