cz.cuni.amis.pogamut.defcon.communication.worldview.modules.grid.basic
Class BasicGridIterator
java.lang.Object
cz.cuni.amis.pogamut.defcon.communication.worldview.modules.grid.basic.BasicGridIterator
- All Implemented Interfaces:
- IGridIterator<SymmetricGridCell,SymmetricGridCellId>
public class BasicGridIterator
- extends Object
- implements IGridIterator<SymmetricGridCell,SymmetricGridCellId>
Iterator for the experimental grid.
- Author:
- Radek 'Black_Hand' Pibil
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicGridIterator
public BasicGridIterator(SymmetricGridCellId cellId,
BasicGrid grid)
getCell
public SymmetricGridCell getCell()
- Specified by:
getCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getBottomNeighbourCell
public SymmetricGridCell getBottomNeighbourCell()
- Specified by:
getBottomNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getLeftNeighbourCell
public SymmetricGridCell getLeftNeighbourCell()
- Specified by:
getLeftNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getRightNeighbourCell
public SymmetricGridCell getRightNeighbourCell()
- Specified by:
getRightNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getTopNeighbourCell
public SymmetricGridCell getTopNeighbourCell()
- Specified by:
getTopNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getBottomLeftNeighbourCell
public SymmetricGridCell getBottomLeftNeighbourCell()
- Specified by:
getBottomLeftNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getBottomRightNeighbourCell
public SymmetricGridCell getBottomRightNeighbourCell()
- Specified by:
getBottomRightNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getTopLeftNeighbourCell
public SymmetricGridCell getTopLeftNeighbourCell()
- Specified by:
getTopLeftNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getTopRightNeighbourCell
public SymmetricGridCell getTopRightNeighbourCell()
- Specified by:
getTopRightNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getListOfNeighbouringCells
public List<SymmetricGridCell> getListOfNeighbouringCells()
- Specified by:
getListOfNeighbouringCells in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getNeighbourCellInDirection
public SymmetricGridCell getNeighbourCellInDirection(Location direction)
- Specified by:
getNeighbourCellInDirection in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
getCellsInRadiusOf
public LinkedList<SymmetricGridCellId> getCellsInRadiusOf(float radius)
- Specified by:
getCellsInRadiusOf in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
moveToBottomLeftNeighbourCell
public SymmetricGridCell moveToBottomLeftNeighbourCell()
- Specified by:
moveToBottomLeftNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
moveToBottomNeighbourCell
public SymmetricGridCell moveToBottomNeighbourCell()
- Specified by:
moveToBottomNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
moveToBottomRightNeighbourCell
public SymmetricGridCell moveToBottomRightNeighbourCell()
- Specified by:
moveToBottomRightNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
moveToLeftNeighbourCell
public SymmetricGridCell moveToLeftNeighbourCell()
- Specified by:
moveToLeftNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
moveToNeighbourCellInDirection
public SymmetricGridCell moveToNeighbourCellInDirection(Location direction)
- Specified by:
moveToNeighbourCellInDirection in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
moveToRightNeighbourCell
public SymmetricGridCell moveToRightNeighbourCell()
- Specified by:
moveToRightNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
moveToTopLeftNeighbourCell
public SymmetricGridCell moveToTopLeftNeighbourCell()
- Specified by:
moveToTopLeftNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
moveToTopNeighbourCell
public SymmetricGridCell moveToTopNeighbourCell()
- Specified by:
moveToTopNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
moveToTopRightNeighbourCell
public SymmetricGridCell moveToTopRightNeighbourCell()
- Specified by:
moveToTopRightNeighbourCell in interface IGridIterator<SymmetricGridCell,SymmetricGridCellId>
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.