cz.cuni.amis.pogamut.defcon.communication.worldview.modules.grid.basic
Class BasicGridIterator

Package class diagram package BasicGridIterator
java.lang.Object
  extended by 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

Constructor Summary
BasicGridIterator(SymmetricGridCellId cellId, BasicGrid grid)
           
 
Method Summary
 SymmetricGridCell getBottomLeftNeighbourCell()
           
 SymmetricGridCell getBottomNeighbourCell()
           
 SymmetricGridCell getBottomRightNeighbourCell()
           
 SymmetricGridCell getCell()
           
 LinkedList<SymmetricGridCellId> getCellsInRadiusOf(float radius)
           
 SymmetricGridCell getLeftNeighbourCell()
           
 List<SymmetricGridCell> getListOfNeighbouringCells()
           
 SymmetricGridCell getNeighbourCellInDirection(Location direction)
           
 SymmetricGridCell getRightNeighbourCell()
           
 SymmetricGridCell getTopLeftNeighbourCell()
           
 SymmetricGridCell getTopNeighbourCell()
           
 SymmetricGridCell getTopRightNeighbourCell()
           
 SymmetricGridCell moveToBottomLeftNeighbourCell()
           
 SymmetricGridCell moveToBottomNeighbourCell()
           
 SymmetricGridCell moveToBottomRightNeighbourCell()
           
 SymmetricGridCell moveToLeftNeighbourCell()
           
 SymmetricGridCell moveToNeighbourCellInDirection(Location direction)
           
 SymmetricGridCell moveToRightNeighbourCell()
           
 SymmetricGridCell moveToTopLeftNeighbourCell()
           
 SymmetricGridCell moveToTopNeighbourCell()
           
 SymmetricGridCell moveToTopRightNeighbourCell()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGridIterator

public BasicGridIterator(SymmetricGridCellId cellId,
                         BasicGrid grid)
Method Detail

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 © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.